I'm not asking how to enable/disable Night Light light via cli. (gsettings get org.gnome.settings-daemon.plugins.color night-light-enabled
)
I'd like to run a script each time Night Light activates or deactivates. (And I assume that there will only be triggers if Night Light is actually enabled.)
One simple example: Run gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
when Night Light activates and gsettings set org.gnome.desktop.interface color-scheme 'prefer-light'
each time it deactivates.
Is there a way to run a custom script on Night Light trigger?