Search notes:

~/.Xresources

The purpose of the .Xresources file is to set X resources. The file is loaded with xrdb into the RESOURCE_MANAGER property of the X11 root window.
When a programmn needs a resource, it is read from this RESOURCE_MANAGER property.

Comments

Comments are introduced with the exlamation mark
! This is a comment
! so is this

Preprocessor

A X resource file is passed through a C preprocessor. So, it's possible to use such constructs
#include "other-x-resource-file-one"
#include "other-x-resource-file-two"
#define …

xterm

Some resources for xterm.
! character width x character height + pixel from left + pixel from top
XTerm*geometry: 255x50+10+10

XTerm*savelines: 20000
XTerm*rightScrollBar: true
XTerm*ScrollBar: true
XTerm*foreground: rgb:ff/e5/c3
XTerm*background: rgb:00/00/00

! https://askubuntu.com/a/541730
XTerm*selectToClipboard: true

Reloading the resources

$ xrdb ~/.Xresources

Querying the resources

$ xrdb -q

See also

xinitrc
~/.Xdefaults

Index