Ubuntu – How to you change Unity’s theme from the command line

bashthemes

I've seen several methods to do this.

However, most of them are not an option to me. I can't use unity-tweak-tool because I need to run the script as root. I can't seem to find a gsettings command that works (tried several by now). All I want to do is install the theme 'Ambiance-dark-red', and then set it as the default. But I need to be able to do this as root.

Can you guys help me out? I'm currently on 14.04, but it would be great if this worked on future releases.

Best Answer

Gtk-theme :

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

Icon-theme :

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

Window-theme :

gsettings set org.gnome.desktop.wm.preferences theme "YourWindowTheme"