1. X Application Resource Files
- /usr/X11R6/lib/X11/app-defaults/$FILE
- ~/.Xresources
Resources are specified in the file using
the following format:
object.subobject[.subobject . . . ].attribute: value
These files are merged to create a flat file database in memory of both
visual and non-visual attributes. This merging follows precedence rules:
- Instance names take precedence over class names.
- Tight bindings take precedence over loose bindings.
2. Gtk Resource files can be cryptic at best.
3. The most user-friendly way to determine and edit X resources is to use
the example programs bundled with X11.
editres
- Relies on the _XEditResCheckMessages function to perform its analysis.
- Displays the widget tree, showing the name and class of specific widgets.
- Displays a resource box, showing the resources of specific widgets.
appres
- Lists relevant resources for a specified widget from the flat file database currently in memory.
listres
- Lists the resources for a specific widget.
xprop and xwininfo
- Lists the properties of a specified window.
4. Xrdb allows more direct manipulation of the flat file database.
- -query
- -load
- -override
- -merge
- -remove
5. You can directly edit the files with your favorite text editor.
6. You can use a preprocessor to further manipulate resource values.