X Resources

Many older X applications rely on resources for configuration. Resources are key-value data that are stored centrally by the X server. Resources are stored in a hierarchy of classes and instances. Each instance has a value. This is easiest to describe by way of some examples. Listing 6.1 shows typical resource entries. These would generally be found in a file called ${ HOME} /.Xdefaults. Note that the numbers in italics indicate line numbers and are not actually in the file.

Code Listing 6.1. Typical X resources
emacs*Background: DarkSlateGray     (1)
emacs*Foreground: Wheat             (2)
emacs*pointerColor: Orchid          (3)
emacs*cursorColor: Orchid           (4)
emacs.geometry: 80x25                          (5)

XTerm*highlightSelection: true      (6)
XTerm*VT100*colorBDMode: on                    (7) XTerm.VT100.titeInhibit: ...

Get Special Edition Using Linux®, Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.