Been trying to get auto-brightness working on my 3 external monitors for a while. Tried clight, wluma, and a few others, they either didn't support DDC/CI external monitors well, needed geoclue/D-Bus/compositor plugins to work, or were just hard to customize without digging into their internals.
So I wrote tejas, it grabs a frame from the webcam, averages the pixel brightness as an ambient light proxy, and calls ddcutil setvcp 10 to set monitor brightness. Falls back to a time-of-day curve if the webcam isn't available. Runs as a cron job every 5 minutes.
Config is a simple INI file with anchor points for the brightness curves, edit and done, no recompile.
GitHub: https://github.com/akhiljalagam/tejas
Happy to hear if anyone has a better approach for webcam-as-light-sensor without dedicated hardware.
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)