Update hyprlock config to avoid workspace leak when suspending

This commit is contained in:
2025-07-03 10:43:10 +02:00
parent 4d93d8eca9
commit a277e2dce1

View File

@@ -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
}