Files
dotfiles/.config/hypr/hypridle.conf
T

29 lines
1.3 KiB
Plaintext
Raw Normal View History

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:29:25 +01:00
timeout = 300 # 5 minutes
2026-06-12 14:23:30 +01:00
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 {
2026-06-12 14:29:25 +01:00
timeout = 330 # 5.5min
2026-06-12 14:23:30 +01:00
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-21 15:32:04 +01:00
timeout = 360 # 6 minutes
2026-06-12 14:23:30 +01:00
on-timeout = systemctl suspend # suspend pc
2026-03-07 19:11:53 +00:00
}