Linux

Where Is the .Xresources File and How Is It Loaded?

The .Xresources file in your home folder (~/.Xresources) sets X app appearance like terminal fonts and colors, loaded with xrdb -merge.

Last updated

The .Xresources file tunes old school X programs: terminal fonts, colors, scroll behavior, and toolkit settings. Each line names a program class plus a resource and a value. The X server holds the database, so files only matter once loaded with xrdb.

That two step flow trips everyone once. Editing the file changes nothing until xrdb -merge runs, and only new windows show results. Desktop environments that skip xrdb leave the file decorative. Put the merge in session startup and forget about it.

Where X11 stores this, by platform

Linux
~/.Xresources

X resource database source for classic apps. Load with xrdb -merge, verify with xrdb -query. Applies to new windows only after merging.

Frequently asked questions

How do I apply .Xresources changes?

Run xrdb -merge ~/.Xresources to load changes into the running server, then start a fresh terminal or app to see them. Already open apps keep old values. Add the merge line to .xinitrc so settings apply every login.

Why is my Xresources setting ignored?

Match the class name exactly, usually with a capital first letter like URxvt or XTerm, then a resource like font or background. List live resources with xrdb -query to copy working names. Case mistakes fail silently, which causes most confusion.

Notice an outdated path? Let us know.