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