From 95a302736a284ca0e5bd4b37f0fad6730c2c607d Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Sun, 8 Dec 2024 21:04:34 +0100 Subject: [PATCH] fix swayidle --- .config/sway/config | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index 30e019b..e68b74b 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -288,13 +288,15 @@ bindsym $mod+$mod2+Print exec $HOME/.local/bin/swaygrim --all # Lockscreen # ------------------------------------------------------------------------------ exec swayidle -w \ - timeout 30 'makoctl -a away' \ + timeout 5 'makoctl mode -a away' \ + resume 'makoctl mode -r away' \ timeout 300 'swaylock -f' \ - timeout 600 'swaymsg "output * dpms off"' \ - resume 'swaymsg "output * dpms on"' \ - resume 'makoctl -r away' \ + resume 'makoctl mode -r away' \ before-sleep 'swaylock -f' +# timeout 600 'swaymsg "output * dpms off"' \ +# resume 'swaymsg "output * dpms on" & makoctl mode -r away' \ + bindsym control+$mod2+l exec swaylock # ------------------------------------------------------------------------------