mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-09-01 08:07:14 +02:00
feat(shoukei): enable wluma ambient-light auto brightness
- read Asahi aop-sensors ALS via iio and drive eDP-1 backlight - drop PrivateUsers for wluma so it can reach the real user D-Bus session - remove hypridle 10min screen-dim listener: its brightnessctl writes fight wluma and get learned as manual adjustments
This commit is contained in:
@@ -13,11 +13,11 @@ listener {
|
||||
on-resume = brightnessctl --restore --device=kbd_backlight # turn on keyboard backlight.
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 600 # 10min.
|
||||
on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor.
|
||||
on-resume = brightnessctl -r # monitor backlight restore.
|
||||
}
|
||||
# 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 = 1200 # 20 minutes
|
||||
|
||||
Reference in New Issue
Block a user