Juraj Fiala opened issue #6: Run command on switch at Romain Vigier / Night Theme Switcher

Juraj Fiala
2020-03-24T10:08:51Z

I’d like to set up my terminal and shell (plus some other non-GTK apps) to follow night light, so an option to run a shell script on switching would be nice.

In line with the minimal nature of this extension, I propose this functionality:

if a shell script is present at a set location – e.g. ~/.local/bin/night-light-switch – fire it at switching, otherwise do nothing

run it with --dark when switching to night mode, with --light when switching to day mode