From da7690757c148b658c966cb2b416eff0c48cc1c9 Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Sun, 12 Nov 2023 20:08:53 +0100 Subject: [PATCH] [swayidle] Fix timeout after sleep --- stow/swayidle/.config/swayidle/config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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