tilix icon indicating copy to clipboard operation
tilix copied to clipboard

Change theme via command line?

Open GalacticSun opened this issue 5 months ago • 3 comments
trafficstars

Is there a way to change the theme for Tilix using a command line command?

If not, would anyone consider adding such a feature?

GalacticSun avatar Jun 03 '25 15:06 GalacticSun

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.

237dmitry avatar Jun 05 '25 09:06 237dmitry

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.

GalacticSun avatar Jun 05 '25 15:06 GalacticSun

Or, is there any other possible way to do this?

GalacticSun avatar Jun 11 '25 14:06 GalacticSun

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.

GalacticSun avatar Aug 05 '25 04:08 GalacticSun

set light theme:

dconf write /com/gexperts/Tilix/theme-variant "'light'"

set dark theme:

dconf write /com/gexperts/Tilix/theme-variant "'dark'"

ygrek avatar Aug 06 '25 21:08 ygrek

Thanks, @ygrek, I appreciate your help, although this didn't work for me. Even with the correct theme name I wanted to switch to.

GalacticSun avatar Aug 06 '25 22:08 GalacticSun

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.

GalacticSun avatar Sep 13 '25 17:09 GalacticSun