how to set icons and theme from terminal?

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.


Solution 1:

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"