tweak sway config for idle
This commit is contained in:
parent
ea617a0277
commit
b19f42a0f4
@ -44,12 +44,12 @@ exec_always {
|
||||
# timeout
|
||||
exec swayidle -w \
|
||||
timeout 300 'playerctl -a pause && swaylock' \
|
||||
timeout 600 'swaymsg "output * dpms off"' \
|
||||
timeout 600 'swaymsg "output * power off"' \
|
||||
before-sleep 'playerctl -a pause' \
|
||||
lock 'swaylock' \
|
||||
resume 'swaymsg "output * dpms on"'
|
||||
resume 'swaymsg "output * power on"'
|
||||
|
||||
# screen lock
|
||||
# system lock
|
||||
bindsym Ctrl+Shift+l exec "playerctl -a pause; \
|
||||
systemctl suspend && \
|
||||
swaylock"
|
||||
|
Loading…
Reference in New Issue
Block a user