Turn off screen when idle.
This commit is contained in:
parent
e5fd4bf9e6
commit
8975324e7c
@ -1,8 +1,10 @@
|
|||||||
set $lock swaylock -c 000000
|
set $lock swaylock -f -c 000000
|
||||||
|
|
||||||
# Hotkey to lock the screen
|
# Hotkey to lock the screen
|
||||||
bindsym $mod+l exec $lock
|
bindsym $mod+l exec $lock
|
||||||
|
|
||||||
exec swayidle \
|
exec swayidle -w \
|
||||||
timeout 300 '$lock' \
|
timeout 300 '$lock' \
|
||||||
|
timeout 600 'swaymsg "output * dpms off"' \
|
||||||
|
resume 'swaymsg "output * dpms on"' \
|
||||||
before-sleep '$lock'
|
before-sleep '$lock'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user