diff --git a/stow/swayidle/.config/swayidle/config b/stow/swayidle/.config/swayidle/config index d558828..973d62b 100644 --- a/stow/swayidle/.config/swayidle/config +++ b/stow/swayidle/.config/swayidle/config @@ -2,4 +2,5 @@ timeout 60 'brightnessctl -sq set $(( $(brightnessctl get) / 10 * 3 ))' resume timeout 120 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' timeout 240 'systemctl suspend' -before-sleep 'swaymsg "output * dpms on"; swaylock' +before-sleep 'playerctl pause' +before-sleep 'swaymsg "output * dpms on"; swaylock --grace 0' # Avoid being able to unlock immediately without password