commit 190482551a1083b7152d4dd1cdddc3335d4c0ba1 parent 283debd04cd9c6316416f61825949c60d9e58cfc Author: JayVii <jayvii[AT]posteo[DOT]de> Date: Wed, 6 Nov 2024 22:41:45 +0100 feat: update timeouts in sway Diffstat:
M | sway/.config/sway/config | | | 15 | ++++++++------- |
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/sway/.config/sway/config b/sway/.config/sway/config @@ -40,14 +40,15 @@ output * bg ~/Bilder/Wallpaper/Sway_Wallpaper_purple_2048x1536.png fill # Example configuration: # exec swayidle -w \ - timeout 300 'swaylock' \ - timeout 360 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ timeout 290 "makoctl set-mode away" resume "makoctl set-mode default" \ - before-sleep 'swaylock' -# -# This will lock your screen after 300 seconds of inactivity, then turn off -# your displays after another 300 seconds, and turn your screens back on when -# resumed. It will also lock your screen before your computer goes to sleep. + timeout 10 'swaylock -f' \ + timeout 60 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ + before-sleep 'makoctl set-mode away && swaylock' \ + after-sleep 'makoctl set-mode default' +# +# Set notification damon as AFK after almost 5 minutes. Lock screen 10 seconds +# afterwards, turn of screen one minute afterwards. ALso set notification daemon +# AFK and lock screen before going to sleep ### Input configuration #