From a277e2dce1b2b8e680646db84ccbad14a8bb0fdf Mon Sep 17 00:00:00 2001 From: Daniele Pintore Date: Thu, 3 Jul 2025 10:43:10 +0200 Subject: [PATCH] Update hyprlock config to avoid workspace leak when suspending --- .config/hypr/hypridle.conf | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.config/hypr/hypridle.conf b/.config/hypr/hypridle.conf index 1189492..410315d 100644 --- a/.config/hypr/hypridle.conf +++ b/.config/hypr/hypridle.conf @@ -1,17 +1,15 @@ general { - lock_cmd = pidof hyprlock || hyprlock # dbus/sysd lock command (loginctl lock-session) - #unlock_cmd = notify-send "unlock!" # same as above, but unlock - before_sleep_cmd = playerctl stop; loginctl lock-session # command ran before sleep - after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display. + lock_cmd = pidof hyprlock || hyprlock + before_sleep_cmd = pidof hyprlock || hyprlock --no-fade-in + after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display. } listener { - timeout = 360 # in seconds - on-timeout = loginctl lock-session # command to run when timeout has passed - #on-resume = notify-send "Welcome back!" # command to run when activity is detected after timeout has fired. + timeout = 360 + on-timeout = loginctl lock-session } listener { - timeout = 600 # in seconds - on-timeout = systemctl suspend # command to run when timeout has passed + timeout = 600 + on-timeout = systemctl suspend }