feat(hypridle): power off monitors at 15min idle

This commit is contained in:
Ryan Yin
2026-08-31 20:06:01 +08:00
parent e1a9424350
commit 6f40483462
+6 -1
View File
@@ -1,7 +1,6 @@
general { general {
lock_cmd = noctalia-shell ipc call lockScreen lock # avoid starting multiple instances lock_cmd = noctalia-shell ipc call lockScreen lock # avoid starting multiple instances
before_sleep_cmd = noctalia-shell ipc call lockScreen lock # lock before suspend before_sleep_cmd = noctalia-shell ipc call lockScreen lock # lock before suspend
# after_sleep_cmd = hyprctl dispatch dpms on # resume dpms after suspend
ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests
} }
@@ -19,6 +18,12 @@ listener {
# the user had made those adjustments. niri (26.04) has no built-in idle timers, # the user had made those adjustments. niri (26.04) has no built-in idle timers,
# so hypridle stays responsible for keyboard backlight, dpms and locking below. # so hypridle stays responsible for keyboard backlight, dpms and locking below.
listener {
timeout = 900 # 15 minutes
on-timeout = niri msg action power-off-monitors # DPMS off via niri
on-resume = niri msg action power-on-monitors # DPMS on via niri
}
listener { listener {
timeout = 1200 # 20 minutes timeout = 1200 # 20 minutes
on-timeout = noctalia-shell ipc call lockScreen lock # lock screen on-timeout = noctalia-shell ipc call lockScreen lock # lock screen