tweak sway config for idle

This commit is contained in:
shibao 2024-01-21 11:48:35 -05:00
parent cd872abde0
commit fb1f43ec63

View File

@ -44,12 +44,12 @@ exec_always {
# timeout # timeout
exec swayidle -w \ exec swayidle -w \
timeout 300 'playerctl -a pause && swaylock' \ timeout 300 'playerctl -a pause && swaylock' \
timeout 600 'swaymsg "output * dpms off"' \ 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"