Specifying a snapshot through X resources
If you don't like someone's snapshot and would like to override it, or
if one of your friends hasn't made a snapshot yet and you'd like to
use a picture of your own until she does, or if you'd like to specify
a snapshot for one of your aliases, you need to use X resources. Xzewd
looks for a snapshot in several different places.
(Name-of-button stands for either the person's username or
the alias's name.)
- Your
xzewd-snapshots*name-of-button.snapshot
resource, which must be a filename or None. If it is
None, no snapshot is used.
- The person's ~/.snapshot file. (Invalid for aliases.)
- Your
xzewd-snapshots*name-of-button.defaultSnapshot
resource, which must be a filename.
Xzewd checks these four places in order, and uses the first valid
snapshot it finds. This means that to override someone's snapshot, you
can specify a snapshot of your own with the
.snapshot resource; to use a snapshot you specify
only if a person doesn't have one of their own, you can use the
.defaultSnapshot resource.
Here's an example. Say you want to make a snapshot for your
Help! alias. You've already made the picture and stored it in the
~/pictures/Help.xpm file. All you need to do now is
put this line in your ~/.Xresources file:
xzewd-snapshots*Help!.snapshot: /mit/your-username/pictures/Help.xpm