[idle;lock] Switches to swaylock
This commit is contained in:
@@ -1,21 +1,12 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
./swaync.nix
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
hyprlock # lock screen
|
||||
# swayidle # lock on idle
|
||||
# swayosd # volume pop-up
|
||||
# swaynotificationcenter # notifications
|
||||
# hyprpolkitagent # Privilege managent
|
||||
# hyprshot # Screenshot utility
|
||||
./swaylock.nix
|
||||
];
|
||||
|
||||
services.swayosd = {
|
||||
@@ -23,16 +14,6 @@
|
||||
topMargin = 0.7;
|
||||
};
|
||||
|
||||
services.swayidle = {
|
||||
enable = true;
|
||||
events = [
|
||||
{
|
||||
event = "before-sleep";
|
||||
command = "hyprlock";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
# Enable sway config generation for home.pointerCursor
|
||||
home.pointerCursor.sway.enable = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user