mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-08-31 23:57:13 +02:00
feat(hypridle): power off monitors at 15min idle
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
general {
|
||||
lock_cmd = noctalia-shell ipc call lockScreen lock # avoid starting multiple instances
|
||||
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
|
||||
}
|
||||
|
||||
@@ -19,6 +18,12 @@ listener {
|
||||
# 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.
|
||||
|
||||
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 {
|
||||
timeout = 1200 # 20 minutes
|
||||
on-timeout = noctalia-shell ipc call lockScreen lock # lock screen
|
||||
|
||||
Reference in New Issue
Block a user