From 27b3285351a5e573ce676487ed5f1b784c6f5862 Mon Sep 17 00:00:00 2001 From: sils Date: Tue, 15 Aug 2023 13:29:52 +0200 Subject: Fix(u/sils/swayidle): Add timeout for screen locking --- users/sils/swayidle/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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"; -- cgit 1.4.1