From 8f83ef4ac9c72d293ca3d3703ac3c17fa6d49e67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Wed, 23 Mar 2022 22:09:18 +0100 Subject: [PATCH] Configure swayidle correctly --- config/programs/swayidle.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/programs/swayidle.nix b/config/programs/swayidle.nix index ea5d8e86..eaf16a76 100644 --- a/config/programs/swayidle.nix +++ b/config/programs/swayidle.nix @@ -28,7 +28,7 @@ in WantedBy = [ "graphical-session.target" ]; }; Service = { - ExecStart = "${pkgs.swayidle}/bin/swayidle -w timeout 300 ${lock-script} timeout 305 ${screen-off-script} timeout 900 ${suspend-script} resume ${resume-script} lock ${lock-script} unlock ${unlock-script}"; + ExecStart = "${pkgs.swayidle}/bin/swayidle -w timeout 300 ${lock-script} timeout 305 ${screen-off-script} resume ${resume-script} before-sleep ${lock-script} timeout 900 ${suspend-script} lock ${lock-script} unlock ${unlock-script}"; }; }; }