Changing GTK themes in OSx
September 2022
Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30  
This site is an effort to share some of the base knowledge I have gathered through all this years working with Linux, FreeBSD, OpenBSD, Python or Zope, among others. So, take a look around and I hope you will find the contents useful.
Recent Entries
Recent Comments
Recent Trackbacks
OpenBSD (9 items)
BSD (0 items)
FreeBSD (19 items)
Linux (3 items)
Security (3 items)
Python (22 items)
Zope (13 items)
Daily (144 items)
e-shell (9 items)
Hacks (14 items)
PostgreSQL (3 items)
OSX (8 items)
Nintendo DS (0 items)
enlightenment (0 items)
Apache (3 items)
Nintendo Wii (1 items)
Django (24 items)
Music (12 items)
Plone (7 items)
Varnish (0 items)
Lugo (2 items)
Sendmail (0 items)
europython (7 items)
Cherokee (1 items)
self (1 items)
Nature (1 items)
Hiking (0 items)
uwsgi (0 items)
nginx (0 items)
cycling (10 items)
Networking (1 items)
DNS (0 items)

Syndicate this site (XML)

RSS/RDF 0.91

14 abril

Changing GTK themes in OSx

or get the same look and feel everywhere

If you, like me, usually find yourself using a lot of open source apps in your OSx system and that applications tend to be GTK based (like dia to draw schemes and diagrams or sylpheed as your MUA), you will see something like that when running that GTK-based application:

Sylpheed in OSX, default GTK theme

Pretty ugly, even more if you like all your applications having the same look. GTK already has some good-looking themes and there are even some themes that mimic the look of OSx itself (just take a look at the gnome-look project to find some.

The problem I found once I downloaded all the themes I would like to check was how could I change the GTK theme within OSX??.

In Gnome there is a tool that let you change every aspect of a Gnome theme, from the GTK theme to the iconset, backgrounds, etc. But obviously, I do not want to install Gnome, just only a way to change easily my default GTK theme.

The answer was right there, in the MacPorts collection:

snowball:~ wu$ port search gtk-theme
gtk-theme-switch               x11/gtk-theme-switch 2.0.4        command-line theme switcher for gtk2
snowball:~ wu$

A command-line tool... could it be better?

Installing it was easy:

sudo port -v install gtk-theme-switch

And, yes, it could be better!, you can use that tool to change the GTK theme from a console, you can use it to install .tgz compressed themes and it has an easy-and-quick GTK-based gui to do the job too. Amazing!

To use the graphical interface, you only have to call switch2 from a, to get something like:

A command-line/graphical theme switcher for gtk

There, you only have to select your favourite theme (if you do not have themes installed, try port search gnome-themes in a shell) and click apply to change the default theme to:

Selecting another theme using switch2 graphical

Well, as we are using OSx, it should be nice if our GTK apps look like the rest of the native applications, so just download the theme tarball, and use switch2 to install it, both from a shell or using the graphical interface.

Once you have your theme installed, you will be able to select it from the dropdown menu in the graphical interface, to use it:

Sylpheed in OSX, OSX-like GTK theme

Much much better, isn't it?

Posted by wu at 19:34 | Comments (0) | Trackbacks (0)
<< The joy of getting SPAM messages by mail | Main | Annoying habits (I) >>
Re: Changing GTK themes in OSx

Thanks for this writeup.
You did not however mention where do i extract the OSx tarball too so switch2 can find it

Posted by: MySchizoBuddy at septiembre 28,2008 06:16
Re: Changing GTK themes in OSx

thank you for your comment (and nice nick). You don't have to put the tgz file in a specific place, just pressing the cross icon by the theme selector you will get a dialog window that will let you pick up a tgz file from wherever you want. Once you have selected one, the tool will extract it in the correct place for you. If not, just take a look inside ~/.themes as they should be there. Hope that helps!

Posted by: Wu at septiembre 29,2008 01:38
Re: Changing GTK themes in OSx

Thank you for this useful information!

Yes, I know that sounds like spam :) - but I actually mean it. And I was searching on how to change the theme for nearly 2 days...
Sylpheed / Claws-Mail looks so much better now!

Cheers, Stephan

Posted by: StN at noviembre 28,2010 16:15
Re: Changing GTK themes in OSx

What is the name of the GTK theme you used ?

Posted by: Dominus at febrero 03,2012 13:43
Re: Changing GTK themes in OSx

@Dominus: I'm not sure (this post have some time now), but I'd say it was one of the *aqua* GTK2 themes (hope that helps).

Posted by: Wu at febrero 03,2012 13:50
Re: Changing GTK themes in OSx

how to download it on windows 7

Posted by: Harjoven at octubre 10,2012 02:33
Please send trackback to:
There are no trackbacks.
Post a comment