Place the appropriate xrdb command line in your
.xinitrc file or .xsession
file to initialize resources at login, although it can also be
invoked interactively. It has the following syntax:
xrdb [options] [filename]
The xrdb client takes several options, all of
which are documented on its manual page. We'll
discuss the most useful options.
The optional filename argument specifies the
name of a file from which the values of client variables (resources)
will be read. If no filename is specified, xrdb
will expect to read its data from standard input. Note that whatever
you type will override the previous contents, so if you inadvertently
type xrdb without a filename argument and then
quit with CTRL-d, you will delete any previous values. (You can
append new settings to current ones using the -merge
option discussed later in this article.)
The resource filename can be anything you
want. Two commonly used names are .Xresources
and .Xdefaults.
You should load a resource file with the xrdb
-load option. For example, to load the contents of
your .Xresources file into the RESOURCE_MANAGER,
you would type:
% xrdb -load .Xresources