mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-08-31 23:57:13 +02:00
41 lines
1.8 KiB
Plaintext
41 lines
1.8 KiB
Plaintext
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
|
|
ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests
|
|
}
|
|
|
|
listener {
|
|
timeout = 180 # 3 minutes
|
|
# List devices: brightnessctl --list
|
|
# Adjust keyboard backlight: brightnessctl -d kbd_backlight set 50%
|
|
on-timeout = brightnessctl --save --device=kbd_backlight set 0 # turn off keyboard backlight.
|
|
on-resume = brightnessctl --restore --device=kbd_backlight # turn on keyboard backlight.
|
|
}
|
|
|
|
# NOTE: intentionally no 10min screen-dim listener here. Writing brightnessctl
|
|
# directly fights the ambient-light auto-brightness daemon (wluma on shoukei):
|
|
# wluma is adaptive, and hypridle's periodic brightness writes get learned as if
|
|
# 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
|
|
}
|
|
|
|
# listener {
|
|
# timeout = 1660 # 31 minutes
|
|
# on-resume = brightnessctl -r # monitor wake up & screen on
|
|
# }
|
|
|
|
# listener {
|
|
# timeout = 1800 # 30min
|
|
# on-timeout = systemctl suspend # suspend pc
|
|
# }
|