update hypridle for niri

This commit is contained in:
Alexander Navarro 2025-11-05 09:44:48 -03:00
parent e9edfb922a
commit 14d8aed4a2

View file

@ -1,7 +1,7 @@
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 having to press a key twice to turn on the display.
after_sleep_cmd = niri msg action power-on-monitors # to avoid having to press a key twice to turn on the display.
}
listener {
@ -24,8 +24,8 @@ listener {
listener {
timeout = 330 # 5.5min
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
on-resume = hyprctl dispatch dpms on && brightnessctl -r # screen on when activity is detected after timeout has fired.
on-timeout = niri msg action power-off-monitors # screen off when timeout has passed
on-resume = niri msg action power-on-monitors && brightnessctl -r # screen on when activity is detected after timeout has fired.
}
listener {