I have just read the man page for Xbiff (mail notifier).
There is a list of options that can be used ‘xbiff -bg red’ etc. But there is also
a section called ‘X defaults’ with options like ‘checkCommand, onceOnly’ etc. But how do I apply these options and make sure that they only apply for xbiff?
Could you elaborate on this for my benefit? Granted, I’ve learned my X
resources on the street, but I thought the capitalization as I have it is necessary so that the specification holds in all instances, eg XBiff*foreground: purple would work for xbiff -name one and xbiff -name two alike.
When you set a resource option in ~/.Xdefaults or ~/.Xresources (the former is somewhat antiquated now) what happen is that the application will query the resource database and set the various properties for that part of the window that it recognises. The format looks like this:
So you might have, for instance:
Those options which begin with a full-stop (or an asterisk) as in the case for font, apply to all windows, unless overruled further down by a specific application.
It gets a little more complicated than this though – consider for a moment that some applications might have multiple preferences being set for various bits of a window (moxfm does this, for instance). In the specific case, one can use:
But for generic settings for resource level items, one can use an asterisk, as in:
The ordering of which is important, as I am sure you’ll appreciate. Individual items are called “components”. These typically begin with a lower-case letter, whilst the corresponding class name would begin with an upper-case letter. Class names when used in resource settings take precedence over the instance name, example: