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