The basic syntax of a resource definition file is fairly simple. Each
client recognizes certain resource variables that can be assigned a
value; see the client's manpage for a list.
The most basic line you can have in a resource definition file
consists of the name of a client, followed by a dot (.) or an
asterisk (*), and the name of a variable. A colon
(:) and whitespace separate the client and variable names from the
actual value of the resource variable. The following line gives a
scrollbar to all instances of the xterm client:
xterm*scrollBar: True
If the name of the client is omitted, the variable is
global: it applies to all instances of all
clients (in this case, all clients that can have a scrollbar). If the
same variable is specified as a global variable and a client-specific
variable, the value of the client-specific variable takes precedence
for that client. However, if the name of the client is omitted, the
line should generally begin with an asterisk.
Be sure not to omit the colon inadvertently at the end of a resource
specification. This is an easy mistake to make, and the resource
manager provides no error messages. If there is an error in a
resource specification (including a syntax error such as the omission
of the colon or a misspelling), the specification is ignored. The
value you set will simply not take effect.