6

Yesterday I created a file called .Xresources, and I can't seem to get it to load into urxvt. I have tried pasting in stuff, and restarted the terminal, logged in and logged out, restarted my computer several times.

But I still have this white GUI. What do I have to do to make it work?

1
  • You might want to try and put xrdb -merge ~/.Xresources in a file like ~/.xinitrc if that file gets loaded.
    – joepd
    Commented Feb 6, 2016 at 13:55

1 Answer 1

8

There is no specific .Xresources to examine, so only general advice is possible.

The .Xresources file is usually loaded by xrdb (a prop for desktop settings). You can test this file by simply loading directly with xrdb, e.g.,

xrdb -merge ~/.Xresources

or just

xrdb ~/.Xresources

if you do not care for the desktop-designer's choices.

If there is some conflicting resource definition, the more specific one is used. For instance, if you had

urxvt*background: blue

and some desktop feature loads

urxvt.background: gray

you would get a gray background because the . is more specific than *.

You can see what xrdb did:

xrdb -query

If there is a resource needed by the application which is not set in the root window using xrdb, that resource is loaded according to the usual X resource rules (e.g., the system app-defaults files as well as your own .Xdefaults file).

If you are not running in a desktop environment that automatically runs xrdb, much of the advice regarding xrdb is probably not useful.

Further:

2
  • The problem is, whatever I write used xrdb to try to load it and restarted terminal, no results. Nothing happens.
    – Cra
    Commented Feb 6, 2016 at 13:42
  • That should be xrdb -merge ~/.Xresources instead of xrdb merge ~/.Xresources.
    – joepd
    Commented Feb 6, 2016 at 13:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .