From d648fca8d13be14f53a126f6eb48c343bb37045b Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Wed, 6 Jul 2022 16:14:51 +0200 Subject: [PATCH] Pause media before screen lock --- sway/.config/sway/config.d/10_autoexec | 1 + 1 file changed, 1 insertion(+) diff --git a/sway/.config/sway/config.d/10_autoexec b/sway/.config/sway/config.d/10_autoexec index 87be6ad..775fe40 100644 --- a/sway/.config/sway/config.d/10_autoexec +++ b/sway/.config/sway/config.d/10_autoexec @@ -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