My words on free/open source software and Mac

Friday, January 19, 2007

Font Config of Gtk2 and Gnome2 Applications Outside Gnome2

I have switched from GNOME to KDE, and have been happy with it, since it's A LOT faster. A small problem is those GNOME applications will appear in default theme/font style regardless your settings done in GNOME. Perhaps they rely on some global environment settings that exists only when GNOME is loaded.

Here's a workaround from Ed Hurst: Gtk2 and Gnome2 Applications Outside Gnome2.

Quote:
Fonts: Create a config file in your home directory -- ~/.gtkrc-2.0. In this file, place one simple line:

gtk-font-name = "Arial 12"


Theme: To get the color scheme you like, choose one that is available on your system -- /usr/share/themes in SuSE/Fedora -- and make sure it is indeed Gtk2, as not everything there is. Edit ~/.gtkrc-2.0 and add a line like this one:

include "~/.themes/Dirty-Ice/gtk-2.0/gtkrc"

Quote end.

This is my ".gtkrc-2.0":

gtk-font-name = "Sans 12"
include "/usr/share/themes/Simple/gtk-2.0/gtkrc"


Have fun with KDE! :)

No comments:

About Me

My Photo
Santa Cruz, California, United States