From 00d3a63ae43ffcd810cc47c6f79b04bb36a678cf Mon Sep 17 00:00:00 2001 From: dadada Date: Sun, 5 Apr 2020 17:25:36 +0200 Subject: [PATCH] sway: fix screen locking --- sway/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sway/config b/sway/config index 9e112a1..f0f671c 100644 --- a/sway/config +++ b/sway/config @@ -278,6 +278,6 @@ for_window [class="jetbrains-studio"] floating enable focus_follows_mouse no exec xset s off -exec xss-lock -- lock-session -#exec swayidle timeout 60 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -i ~/.config/nixpkhs/sway/wallpaper' +#exec xss-lock -- lock-session +exec swayidle -w timeout 300 '$HOME/bin/lock-session' timeout 240 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep '$HOME/bin/lock-session' lock '$HOME/bin/lock-session' #exec redshift