Pause media before screen lock

This commit is contained in:
Sam A. 2022-07-06 16:14:51 +02:00
parent 39a6ff8f58
commit d648fca8d1
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -15,6 +15,7 @@ exec swayidle -w \
timeout 600 'swaylock' \
timeout 1200 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep 'playerctl pause' \
before-sleep 'swaylock'
# Custom script for VPN connection before XDG autostart applications