diff options
author | sils <sils@sils.li> | 2023-08-15 13:29:52 +0200 |
---|---|---|
committer | sils <sils@sils.li> | 2023-08-15 13:29:52 +0200 |
commit | 27b3285351a5e573ce676487ed5f1b784c6f5862 (patch) | |
tree | a07ad3ba4a97ea38e85214697346f7bdf579ed28 | |
parent | Fix(s/packages): Remove gnome-keyring (diff) | |
download | nix-config-27b3285351a5e573ce676487ed5f1b784c6f5862.tar.gz nix-config-27b3285351a5e573ce676487ed5f1b784c6f5862.zip |
Fix(u/sils/swayidle): Add timeout for screen locking
-rw-r--r-- | users/sils/swayidle/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/users/sils/swayidle/default.nix b/users/sils/swayidle/default.nix index 6b5f978..216165d 100644 --- a/users/sils/swayidle/default.nix +++ b/users/sils/swayidle/default.nix @@ -9,7 +9,13 @@ #} { event = "before-sleep"; - command = "${pkgs.swaylock}/bin/swaylock"; + command = "${pkgs.swaylock}/bin/swaylock -f"; + } + ]; + timeouts = [ + { + timeout = 120; + command = "${pkgs.swaylock}/bin/swaylock -f"; } ]; systemdTarget = "hyprland-session.target"; |