mirror of
https://github.com/danielepintore/dotfiles.git
synced 2026-06-15 20:25:13 +02:00
Update hyprlock config to avoid workspace leak when suspending
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user