diff options
-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"; |