mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-09-01 07:47:12 +02:00
feat(hypridle): power off monitors at 15min idle
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user