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

10 lines
353 B
Text

# Example
# DO NOT EDIT THIS FILE
#exec swayidle -w \
timeout 300 '$lock_command' \
timeout 300 'swaymsg "output * dpms off"' \
timeout 310 'systemctl suspend' \
timeout 10 'if pgrep -x swaylock; then swaymsg "output * dpms off"; fi' \
resume 'swaymsg "output * dpms on"' \
before-sleep 'playerctl -a pause' \
before-sleep '$lock_command'