tilix
tilix copied to clipboard
Change theme via command line?
Is there a way to change the theme for Tilix using a command line command?
If not, would anyone consider adding such a feature?
I think a less complicated way is to dump the settings for each theme with dconf and restore the one you need. A more complicated option is a script that reads the theme's json file and writes the values with dconf.
Ideally, I'd just like to be able to easily change the Tilix theme using a command or a bash script from a light one to a dark one and vice versa when I change my OS theme, which I do daily. Is doing what you suggest with dconf and/or the json file an easily scriptable thing to do? Would you mind providing a bit more clarification on how I might go about doing this? Thanks very much.
Or, is there any other possible way to do this?
Is there any chance to get this feature built into Tilix somehow, please? That is, a way to change the theme programmatically (ie. via a bash script)? Some of us users would love a way to easily change the theme daily without having to go into Preferences and change it manually. Tilix really is a great application. Thank you.
set light theme:
dconf write /com/gexperts/Tilix/theme-variant "'light'"
set dark theme:
dconf write /com/gexperts/Tilix/theme-variant "'dark'"
Thanks, @ygrek, I appreciate your help, although this didn't work for me. Even with the correct theme name I wanted to switch to.
It appears that this dconf command doesn't work because Tilix may not check the dconf db frequently enough, or at all for these settings (because the theme doesn't change even after changing this dconf value and restarting Tilix). Not 100% sure if that's the reason, but it might be, because the setting does get changed with that command.