2026-03-07 19:11:53 +00:00
|
|
|
general {
|
2026-06-12 14:23:30 +01:00
|
|
|
lock_cmd = pidof hyprlock || hyprlock --grace 10 # lock screen
|
|
|
|
|
# before_sleep_cmd = loginctl lock-session # lock before suspend.
|
|
|
|
|
# after_sleep_cmd = sleep 1 && hyprctl dispatch dpms on # delay for PAM readiness, then turn on display.
|
2026-03-07 19:11:53 +00:00
|
|
|
inhibit_sleep = 3 # wait until screen is locked
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
listener {
|
2026-06-12 14:23:30 +01:00
|
|
|
timeout = 600 # 10 minutes
|
|
|
|
|
on-timeout = notify-send "You are idle and will be locked soon!" # command to run when timeout has passed.
|
|
|
|
|
on-resume = notify-send "Welcome back!" # command to run when activity is detected after timeout has fired.
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# listener {
|
|
|
|
|
# timeout = 20 # 6 minutes
|
|
|
|
|
# on-timeout = loginctl lock-session # lock screen when timeout has passed
|
|
|
|
|
# }
|
|
|
|
|
|
|
|
|
|
listener {
|
|
|
|
|
timeout = 630 # 10.5min
|
|
|
|
|
on-timeout = hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })' # screen off when timeout has passed
|
|
|
|
|
on-resume = hyprctl dispatch 'hl.dsp.dpms({ action = "enable" })' && brightnessctl -r # screen on when activity is detected after timeout has fired.
|
2026-03-07 19:11:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
listener {
|
2026-06-12 14:23:30 +01:00
|
|
|
timeout = 1800 # 30min
|
|
|
|
|
on-timeout = systemctl suspend # suspend pc
|
2026-03-07 19:11:53 +00:00
|
|
|
}
|