Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4427

How to run a script when Night Light is triggered

$
0
0

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?


Viewing all articles
Browse latest Browse all 4427

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>