[FEATURE] Night light hook
Submission checklist
- [x] I have searched existing issues and confirmed this has not been requested before.
- [x] I have checked existing pull requests for similar changes.
Feature type
Developer / API improvement
Feature summary
Could be nice to have nightlight_changed hook + nightlight.active in status JSON.
Motivation / use case
I would like to change palette and wallpapers source dir when night light is activated, I'm making a plugin for that. it need to know when to be activated.
Proposed solution
Add nightlight_changed hook & nightlight.active in status
Alternatives considered
No response
References / related projects
No response
Additional context
No response
Hey @lgranie, would a sunset/sunrise hook be what you are looking for ? Or do you really want a nightlight hook that also activate when you manually toggle it ? Actually the night light is a one-hour fade centered on sunrise and sunset, so do you want the hook when the night light is fully applied, or when it starts applying, or at the middle on the sunset/sunrise time ?
Hey I think thème and wallpapers depend more on nightlight who dépends on sunrise/sunset. Is the when can be a parameter to the hook?
Hi, can you check the linked PR and let me know if it has everything you need ? It should cover every use case.
Looks good to me thx