Turn off screen when idle.

This commit is contained in:
Tom Alexander 2023-10-11 23:03:21 -04:00
parent e5fd4bf9e6
commit 8975324e7c
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -1,8 +1,10 @@
set $lock swaylock -c 000000
set $lock swaylock -f -c 000000
# Hotkey to lock the screen
bindsym $mod+l exec $lock
exec swayidle \
exec swayidle -w \
timeout 300 '$lock' \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep '$lock'