You are not logged in.

#1 2011-09-15 09:05:07

phoenixRO
Member
Registered: 2011-09-15
Posts: 21

[SOLVED] Xresources not loading

Hello everyone!

I am running awesome and I want to configure xterm/urxvt to have a different color scheme on startup. After following the indications in the wiki regarding .Xresources, I restarted X and the changes are not in effect. What should I do?

Some observations:
* The file has +rx for all:

4.0K -rwxr-xr-x 1 521 Sep 15 10:40 .Xresources

* /etc/X11/xinit/xinitrc has:

userresources=$HOME/.Xresources
..
if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"
fi

* Contents of ~/.xinitrc:

xrdb -load ~/.Xresources &
exec awesome

* If I run "xrdb -load ~/.Xresources" and then fire up xterm/urxvt, nothing is changed.

Last edited by phoenixRO (2011-09-15 14:35:30)

Offline

#2 2011-09-15 12:34:18

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Xresources not loading

Have you tried

xrdb -merge ~/.Xresources

?

Offline

#3 2011-09-15 12:37:47

phoenixRO
Member
Registered: 2011-09-15
Posts: 21

Re: [SOLVED] Xresources not loading

Yes, and nothing changed. I suppose it is automatically run by xinit anyway as long as it is there in xinitrc.

Offline

#4 2011-09-15 12:46:08

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Xresources not loading

phoenixRO wrote:

Yes, and nothing changed. I suppose it is automatically run by xinit anyway as long as it is there in xinitrc.

Sorry I wasn't precise: you need to open a new terminal to see the changes.
Run

xrdb -merge ~/.Xresources

and open a new terminal - preferably from the terminal, so you can see if you get any errors regarding the new color scheme e.g.

[karol@black ~]$ xterm
error: cannot load blah blah blah

Offline

#5 2011-09-15 14:35:07

phoenixRO
Member
Registered: 2011-09-15
Posts: 21

Re: [SOLVED] Xresources not loading

God, I'm dumb sad I actually did exactly what you said from the beginning, but I got no error/warning message (not from xterm, nor from urxvt). However, when I copied the color scheme from a website, I got the line numbers somehow also copied.

Now everything works. Thanks! smile

Offline

Board footer

Powered by FluxBB