This works better supposedly

This commit is contained in:
Logan G 2021-11-17 12:26:56 -07:00
parent c1de3285e2
commit 55558a31d6
Signed by: logan
GPG key ID: E328528C921E7A7A

View file

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