swayidle: Only turn off display if swaylock is running

This commit is contained in:
Adam Gausmann 2023-01-21 15:12:38 -06:00
parent cb8ba13983
commit 427aa01c46
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ for_window [title="TrackMania"] inhibit_idle focus
exec pipewire
exec pipewire-pulse
#exec swayidle
exec swayidle
exec dunst
exec udiskie

View file

@ -1,2 +1,2 @@
timeout 900 'swaylock -f -c 000000'
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"'
timeout 10 'pgrep swaylock && swaymsg "output * dpms off"' resume 'pgrep swaylock && swaymsg "output * dpms on"'