30

Is there a way to set active icon theme and GTK theme from a terminal?

I would like to write a script that installs and sets everything up the way i like it on a fresh install.

1 Answer 1

38

Should work with gsettings try these commands...

Change GTK-Theme:

gsettings set org.gnome.desktop.interface gtk-theme "CoolestThemeOnEarth"

Change Icon-Theme:

gsettings set org.gnome.desktop.interface icon-theme 'MyIconTheme'

Change Window-Theme:

gsettings set org.gnome.desktop.wm.preferences theme "CoolestThemeOnEarth"
5
  • Aah should have thought about that, thank you. btw do you know the difference between gconftool-2 and gsettings?
    – Kempe
    Mar 2, 2013 at 7:59
  • 5
    You´re welcome :-) GConf is obsolete. It is the older GNOME 2.x configuration API and system, and has been replaced by DConf/GSettings in newer versions. However, some applications still use it. GSettings is a GLib implementation of DConf, which stores its data in a binary database. The gsettings command line tool is simply a tool to access or modify settings via the GSettings API, in the same way that the older gconftool command line tool is for GConf.
    – makim
    Mar 2, 2013 at 9:33
  • Howto get the options available from each property?
    – momo2047
    Apr 14, 2017 at 16:04
  • Does this work on other desktop enviromnents? Jan 10, 2022 at 0:02
  • Some applications still use older GConf so this answer is incomplete, because these older applications are not affected by gsettings commands at all. If you want to post a complete answer, you would have to add gconftool-2 alternatives for your gsettings command?
    – 71GA
    Mar 16, 2022 at 11:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .