logansdotfiles/.config/sway/config.d/.idle.example

12 lines
424 B
Text
Raw Normal View History

2021-11-16 21:57:53 -05:00
# Example
# DO NOT EDIT THIS FILE
2021-11-17 14:26:56 -05:00
#exec swayidle -w \
2021-11-17 16:18:36 -05:00
timeout 300 '$lock_command' \
timeout 301 'swaymsg "output * dpms off"' \
timeout 360 'systemctl suspend' \
resume 'swaymsg "output * dpms on"' \
2021-11-17 14:26:56 -05:00
timeout 10 'if pgrep -x swaylock; then swaymsg "output * dpms off"; fi' \
2021-11-17 16:18:36 -05:00
resume 'if pgrep -x swaylock; then swaymsg "output * dpms on"; fi' \
2021-11-16 21:57:53 -05:00
before-sleep 'playerctl -a pause' \
2021-11-17 14:26:56 -05:00
before-sleep '$lock_command'