I've created several customized Gtk+ themes, more or less following this. They are all created under ~/.themes/
folder, and they are all working fine.
However, my question is, how come the system know which one of the themes under ~/.themes/
is the current one that I'm using? I want to backup that file to save my configuration. I know it is not ~/.config/gtk-3.0/settings.ini
. So what is it?
Answer
Your current theme is not stored in a configuration file per se. It is a setting managed with dconf, which you can learn more about at GNOME's documentation page on the subject.
The exact setting is /org/gnome/desktop/interface/gtk-theme
for GNOME and Unity and /org/mate/desktop/interface/gtk-theme
for MATE. You can use dconf-editor to look at settings like these. It will show you the current value and the system default value.
You can also use the dconf command-line tool. dconf read /org/gnome/desktop/interface/gtk-theme
will show you the current value.
System themes are stored in /usr/share/themes/
. This is the system-wide equivalent of your ~/.themes/
directory. The directory matching the name of the value of your dconf setting is your current gtk theme.
No comments:
Post a Comment