Question mark ( ?) and asterisk ( *) can be used as wildcards, making it easy to write a single rule that can be applied to many different applications or elements. Note: For more information about Xresources file syntax see XrmGetDatabase(3) § FILE_SYNTAX. A colon ( :) is used to separate the resource declaration from the actual value. ) is used to signify each step down into the hierarchy - in the above example we start at name, then descend into Class, and finally into the resource itself. String (a string of characters) (for example a word ( white), a color ( #ffffff), or a path ( /usr/bin/firefox))ĭelimiters A dot (.Resources are typically lowercase with uppercase concatenation. resource The name of the resource whose value is to be changed. Name The name of the application, such as xterm, xpdf, etc class The classification used to group resources together. For example, Dialog.bodyFont is a XScreenSaver internal resource that is specfied to set the body font and fallback font: The resource substring may contain a separator ( name and Class will never contain a separator). The syntax of an Xresources file is as follows: xterm(1) § RESOURCES is a good example, as it contains a list of X resources and their default values. To see the default settings for your installed X11 applications, look in /usr/share/X11/app-defaults/.ĭetailed information on program-specific resources is usually provided in the man page for the program. Otherwise, programs launched after xrdb may look for resources before it has finished loading them. Note: Do not background the xrdb command within ~/.xinitrc.
0 Comments
Leave a Reply. |