You are not logged in.

#1 2011-06-13 16:39:07

awayand
Member
Registered: 2009-09-25
Posts: 398

[SOLVED] xterm not reading ~/.Xresources

Apparently, .Xresources is the new file of choice for x-clients and .Xdefaults is deprecated, at least so I read on the internetz. I have tried the following in my .Xresources:

xterm*background:Black
xterm*foreground:Green

but not luck. A quick "$ strace -eopen xterm" reveals that xterm doesn't even bother reading that file anymore, but rather prefers ~/.Xdefaults-arch ???

I am thinking lol wut, What is up with that? Anyone know why xterm is behaving that way?

Anyone got xterm to work with ~/.Xresources?

Last edited by awayand (2011-06-13 18:23:10)

Offline

#2 2011-06-13 16:40:14

awayand
Member
Registered: 2009-09-25
Posts: 398

Re: [SOLVED] xterm not reading ~/.Xresources

PS: I am using dwm and it rocks. I wish stalonetray would work with it, the kludges option doesn't do jack to keep the tray from bouncing all over the place instead of staying at its -geometry 1x1-0-0...

Offline

#3 2011-06-13 17:57:04

Wey
Member
Registered: 2011-04-22
Posts: 217

Re: [SOLVED] xterm not reading ~/.Xresources

As far as I know, you have to use xorg-xrdb. execute xrdb -merge ~/.Xresources, e. g. in your .xinitrc, depending on how you are starting your wm. It is also not mandatory to use .Xresources. In my xinitrc I'm using the following:

xrdb -merge << "EOF"
URxvt*font:xft:monospace:size=12
URxvt*scrollBar:false
EOF

Offline

#4 2011-06-13 18:00:58

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: [SOLVED] xterm not reading ~/.Xresources

or set the XENVIRONMENT variable to point to your Xresources file.

export XENVIRONMENT="${HOME}/.Xresources"

Offline

#5 2011-06-13 18:22:43

awayand
Member
Registered: 2009-09-25
Posts: 398

Re: [SOLVED] xterm not reading ~/.Xresources

nice, thanks for that solution! worked perfectly! (xrdb -merge)

Offline

Board footer

Powered by FluxBB