summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-08-15 13:29:52 +0200
committersils <sils@sils.li>2023-08-15 13:29:52 +0200
commit27b3285351a5e573ce676487ed5f1b784c6f5862 (patch)
treea07ad3ba4a97ea38e85214697346f7bdf579ed28
parentFix(s/packages): Remove gnome-keyring (diff)
downloadnix-config-27b3285351a5e573ce676487ed5f1b784c6f5862.tar.gz
nix-config-27b3285351a5e573ce676487ed5f1b784c6f5862.zip
Fix(u/sils/swayidle): Add timeout for screen locking
Diffstat (limited to '')
-rw-r--r--users/sils/swayidle/default.nix8
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";