add hypridle conf

This commit is contained in:
Frodd
2025-08-29 11:21:48 +01:00
parent 89dd65ef37
commit d475aad8cc

View File

@@ -0,0 +1,31 @@
general {
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
before_sleep_cmd = loginctl lock-session # lock before suspend.
after_sleep_cmd = hyprctl dispatch dpms on # to avoid press a key twice to turn on the display.
}
# Screen
listener {
timeout = 150 # 2.5 mins
on-timeout = brightnessctl -s set 10 # brightness down
on-resume = brightnessctl -r # brightness restor
}
# Keyboard
listener {
timeout = 150 # 2.5min.
on-timeout = brightnessctl -sd tpacpi::kbd_backlight set 0 # turn off keyboard backlight.
on-resume = brightnessctl -rd tpacpi::kbd_backlight # turn on keyboard backlight.
}
# Lock
listener {
timeout = 300 # 5min
on-timeout = loginctl lock-session # lock screen when timeout has passed
}
# Suspend
listener {
timeout = 360 # 6min
on-timeout = systemctl suspend # suspend
}