2
I have a computer at home that I log into remotely. The "monitor" for it is a TV, so I want gtk applications to use a large font and icon theme, which I managed to do by editing the ~/.gtkrc-2.0 file and some other similar stuff. What I want to be able to do is have a separate theme for when I'm logging in remotely. The best way to explain is that I would like my gtk theme choice to be dependent on the X display that the application is started on. For example, if I start something on :0.0 then that is the TV and I want large fonts, but if I start it on localhost:10.0 I want to use a regular size font, because it will get rendered on my laptop screen.
The elegant solution would be to have some sort of IF statement in the .gtkrc-2.0 file that checks the $DISPLAY variable and behaves accordingly. The problem is I can't find any documentation on control structures in .gktrc files, or if it's even possible to do that.
[Edit] Additionally, is there any way to do this in GTK+ 3 without having to install gnome?
Update: In recent GNOME versions, it might be more difficult to run g-s-d (now split off to gsd-xsettingsd`) without the rest of GNOME, however there are new alternatives available. – user1686 – 2019-11-03T18:31:17.737
I am pretty sure gnome-settings-daemon requires installing gnome, which is something I'm trying to avoid, as I want to keep a somewhat minimalistic setup. A google search for Xsettings daemon returns gnome-settings-daemon and basically nothing else. Is there a way to have this work for both GTK+ 2/3 without having to install the fullness of gnome? – vlsd – 2011-11-22T19:42:33.503
I am pretty sure it doesn't. I've used it with wmii myself. – user1686 – 2011-11-22T19:50:07.240
OK, I'll give it a try, I was probably reading the dependency list wrong. – vlsd – 2011-11-22T19:52:40.533