x11 looks ugly while opening a remote window from ssh. Can I use GTK themes?

8

3

I use to connect to a distant computer running linux from my mac using ssh.

For example I use:

$ ssh -Y login@host

then

$ gnome-open .

in order to open a nautilus window. This window do open but it looks ugly. I found here that one can install GTK themes through Macports. I installed gtk2-aurora and gtk-chtheme and chose the aurora theme successfully, but my remote windows still look ugly.

Is this theme (or others) working for remote windows or is it only for local x11 windows?

Is there a way to improve the look and feel of remote windows?

Simon

Posted 2009-11-11T20:04:09.230

Reputation:

Answers

7

GTK primarily does client side rendering. What this means for you is that any themes you want to use must be on the remote system (the system running the GTK application).

Once you install the theme on the linux box, you can cause GTK applications to use it by modifying the .gtkrc-2.0 file (again, on the linux box) by creating that file and adding a line like this:

include "/usr/local/share/themes/Raleigh/gtk-2.0/gtkrc"

Suppressingfire

Posted 2009-11-11T20:04:09.230

Reputation: 1 158

3

Alternately, you can run your desktop environment's settings daemon. For example, one of

gnome-settings-daemon
xfce4-settings-daemon
lxde-settings-daemon

Of course, a remote application will be unable to access local themes. If you want a uniform theme across both local and remote applications, be sure that the theme is installed in both locations.

ephemient

Posted 2009-11-11T20:04:09.230

Reputation: 20 750

In my experience, running gnome-settings-daemon on an SSH connection with X forwarding will mess up keyboard input on the X server involved. It also attempts to make other settings that may not be appropriate in a remote session. I think it's best to set the theme directly using gtkrc. – LaC – 2011-01-22T02:17:02.213