Friday 21 October 2011

Manually change GTK3 theme in Xubuntu, Xfce 4.8


Due to a rather intense dislike of both Unity and Gnome-Shell in their current iterations, I've recently switched to using Xubuntu. One quibble i've had is that changing the theme in xfce4-settings-manager often causes the theme used with gtk3 applications to revert to the ugly default, presumably as many themes do not have gtk3 counterparts to display.

The only solution i've been able to find with regards to manually changing the gtk3 theme is to hunt down the theme folder in /user/share/themes and copy the gtk-3.0 folder from that theme into ~/.config.

So if you've changed the theme and just want the default greybird gtk-3.0 theme back for your gtk3 apps, while keeping a different theme for your gtk2 applications you might run something along the lines of:

cp -r /usr/share/themes/greybird/gtk-3.0 ~/.config

For applications run as root to adapt to this theme too you'll need to copy to /root/.config also.
sudo cp -r /usr/share/themes/greybird/gtk-3.0 /root/.config

Hope that helps someone, as it was beginning to annoy me rather a lot. If anyone has a cleaner way to do this please let me know.

13 comments:

  1. Thanks... Works perfectly here, too...

    ReplyDelete
  2. Absolutly GREAT ! Thank you :-)

    ReplyDelete
  3. Thanks, this works nice!

    ReplyDelete
  4. Finally a solution, how to use a theme without GTK3 support in Xubuntu and to have still good lookig GTK3 apps. Thanks a lot!

    ReplyDelete
  5. Great, clear solution. Thanks a lot!

    Greetings from Vienna

    ReplyDelete
  6. Thank you very much! This worked great in Kubuntu, too use oxygen-gtk only for gtk3 apps, other way, they look very ugly.

    ReplyDelete
  7. There is only one thing missing now - some kind of GUI configuration/switcher tool, which will symlink gtk-3.0 folder from selected theme under the ~/.config folder.

    ReplyDelete
  8. Thanks! I was looking for something like this for quite a while. Greatly appreciate it.

    ReplyDelete
  9. Thanks, I was near to be mad looking for what happend. Now I know what happend and how to solve it. Great!

    ReplyDelete
  10. Brilliant, I've been looking for this for ages!

    ReplyDelete
  11. Your blogs and every separate material are so remarkable and lucrative it makes me come back most again. wordpress templates

    ReplyDelete