noctalia-shell icon indicating copy to clipboard operation
noctalia-shell copied to clipboard

[FEATURE] Night light hook

Open lgranie opened this issue 2 months ago • 4 comments

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

lgranie avatar Sep 29 '26 08:09 lgranie

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 ?

Yocraft-2000 avatar Oct 22 '26 16:10 Yocraft-2000

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?

lgranie avatar Oct 22 '26 21:10 lgranie

Hi, can you check the linked PR and let me know if it has everything you need ? It should cover every use case.

Yocraft-2000 avatar Nov 09 '26 10:11 Yocraft-2000

Looks good to me thx

lgranie avatar Nov 09 '26 11:11 lgranie