The command I want the system to run when the user changes the current theme is
wallch --changetheme
How can I accomplish that?
The command I want the system to run when the user changes the current theme is
wallch --changetheme
How can I accomplish that?
Cool question!
There is no easy way that I know of. However, you could set up a script running this command:
will return the current theme:
(I'm on GNOME).
So this is the script:
Use
dconf watch
to monitor for changes in the setting path which you're interested with[[ -n $line ]]
is there as workaround becausedconf watch
fires 3 lines in its output every time a change is detected