xanderfrangos / twinkle-tray

Easily manage the brightness of your monitors in Windows from the system tray
https://twinkletray.com
MIT License
5.36k stars 171 forks source link

[Feature Request] Option to synchronize brightness with Windows Night Light #616

Open hbreitfeld opened 1 year ago

hbreitfeld commented 1 year ago

Since automatically changing brightness on sunset/sunrise has been a common request, I think it would also be nice for users of Windows Night Light to synchronize Twinkle Tray with the existing schedule. While Microsoft provides no nice API, the settings and current state can be accessed through registry entries.

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\CloudStore\Store\DefaultAccount\Current\default$windows.data.bluelightreduction.bluelightreductionstate\windows.data.bluelightreduction.bluelightreductionstate

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\CloudStore\Store\DefaultAccount\Current\default$windows.data.bluelightreduction.settings\windows.data.bluelightreduction.settings

The entries are binary, but others have already decoded it. https://superuser.com/questions/1200222/configure-windows-creators-update-night-light-via-registry

ismailtilki commented 3 months ago

I agree. The sunrise/sunset is nice but not very effective because it never gets to 100 on daytime. It already schedules the sunset brightness at the same time. So either as you said synchronize or give us the ability to change the sensitivity when the schedule should start.

superluig164 commented 1 month ago

Relatedly, if this is implemented, it would also be nice to be able to easily sync with f.lux.