GTK configuration for non-gnome desktop user

March 17th, 2007 mysurface Posted in fluxbox, gtk-theme-switch, Misc, X11 | Hits: 71732 | 9 Comments »

There are a lots of people install and use other windows manager on top of gnome, instead of using metacity by default. Windows manager such as beryl, fluxbox, fvwm etc allows gtk applications to run on top of them with full capabilities. You can also run gtk applications under KDE where by default all KDE native apps are build using QT.

Let the case of fluxbox user, in order to allow the gtk apps appear with themes, icons settings, the convenient way is to run a gnome settings daemon.


After that, you can switch the theme by gnome-theme-manager, or something light gtk-theme-switch or gtk-chtheme.

But, what if I don’t have gnome-settings-daemon? Or I just don’t want to load it up because it is heavy?
You can still uses the gtk-theme-switch for switching the theme for most of the windows manager (Fluxbox 1.0rc2 works for sure.) But, it is missing something… The theme switcher is just for you to switch the themes, but it doesn’t take care of the icons theme and also the size of the icons on toolbar, menu etc.

Recently I find out a way to make an overlay settings on all gtk 2.0 apps without needed to run gnome-settings-daemon. When you uses the theme switch or something else to switch the gtk theme, it will generate a configuration file under your home directory, ~/.gtkrc-2.0.


include "/home/mysurface/.themes/Murrina-Olive/gtk-2.0/gtkrc"

include "/home/mysurface/.gtkrc-2.0.mine"


.gtkrc-2.0 is auto generated by the theme switch, so don’t write anything on this file although it works. Your addition settings will be disappear when you switch your theme again. Look at the second include, the file .gtkrc-2.0.mine is actually not exist. So create it and write your additional settings in it.

What are those additional settings?


gtk-toolbar-style = GTK_TOOLBAR_ICONS

I want my icon theme set, I want my icon appear small. Most of the people stop at setting gtk-icon-sizes, where I find it not enough for me, the icon appear on toolbar is larger compare to when I run gnome-settings-daemon. gtk-toolbar-style is the one I am searching for, I am satisfied now.

You can do more tweaking, check out this, share us some examples, if you find any interesting stuff which is not covers in this post.

[tags]windows manager, small icon, small toolbar icon, gtk themes, gtk 2.0[/tags]

9 Responses to “GTK configuration for non-gnome desktop user”

  1. Thanks. Very helpful.

    Bizarrely, while experimenting (because of the lack of end-user documentation on this stuff) to reduce the size of a tray icon, gtk-large-toolbar didn’t work but “gtk-dnd=48,48″ did, reducing the tray icon from 32×32 to 22×22.

    That solution doesn’t make sense. The 48,48 is an icon size and dnd denotes drag-and-drop! I had already spent too long on this so have not yet tried changing the 48,48.

    This on ubuntu 8.04.1 with default gtk packages, Nautilus and transmission 1.40b1 tray icon.



  2. Hi

    Thanks for your tuto.

    I added in gtkrc-2.0.mine:

    gtk-can-change-accels=1 # to change shortcuts in menu
    gtk-menu-bar-popup-delay=0 # let’s make
    gtk-menu-popdown-delay=0 # the menus
    gtk-menu-popup-delay=0 # speedier!!! No more sluggish!


  3. This is all good but what’s with gtk fonts?

    They look ungly like hell.

  4. Got my icons in menus back !!!!

    # cat ~/.gtkrc-2.0.mine
    gtk-menu-images = 1

  5. [...] I got my Info from [...]

  6. Thanks, that was helpful!

  7. [...] referencia a gtk-menu-images la encontré aquí. A continuación muestro un par de imágenes de Nautilus con valores 0 y 1 para esta directiva. [...]

  8. What a plseaure to find someone who thinks through the issues

  9. This post is worth everyone’s attention. Where can I find out more?

    webpage; Katrin,

Leave a Reply