Skip to main content
Welcome guest. | Register | Login | Post

GTK theme in non-GTK WMs

6 replies [Last post]
libervisco's picture
Offline
Joined: 2006-05-04

I am wondering how to enable GTK themeing on window managers that aren't GTK based and therefore don't load GTK themes by default.

For example, in both fluxbox and enlightenment when I start any of the GTK based applications they look like that old plain GTK theme (or non-theme). Only once I manually start gnome-theme-manager does the theme selected in it apply to those apps.

However, I don't want to start gnome-theme-manager every time I start these WM's. There must be a script or something of the sort that loads GTK styling and applies them to GTK windows. Do you know anything about it? I should then just add it to whatever startup configuration file is read by enlightenment or fluxbox.

Thanks
Daniel

dylunio's picture
Offline
Joined: 2005-12-20

In your ~/.gtkrc-2.0 put for example:

Quote:

gtk-theme-name = "Industrial"

A list of themes will be in /usr/share/themes Smiling

libervisco's picture
Offline
Joined: 2006-05-04

Cool, thanks I'll try that.

So, that gtkrc-2.0 file is read by default whenever starting X?

tbuitenh's picture
Offline
Joined: 2005-12-21

I run xfce-mcs-manager in my .xinitrc , and use xfce-setting-show to configure gtk and a few other things (like easily switching between left and right handed mouse)

#!/bin/sh

#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#

xfce-mcs-manager
xscreensaver -nosplash &
exec enlightenment

Note: there should NOT be a '&' after xfce-mcs-manager

libervisco's picture
Offline
Joined: 2006-05-04

Thanks, I did that and it works. GTK apps load with GTK themes properly applied. Smiling

a thing's picture
Offline
Joined: 2005-12-20

If you're using KDE, look into the GTK-Qt Engine.

libervisco's picture
Offline
Joined: 2006-05-04
"a thing" wrote:

If you're using KDE, look into the GTK-Qt Engine.

Yes, that's a very useful tool as well. I used it before. I'm on enlightenment now though.

Thanks