The configuration file has a very simple format. Each line describes an action; if a line begins with a whitespace it is considered a continuation of the previous line. Lines beginning with `#' are considered as comments.
Each line has three parts: a name of a USB HID item, a value for that item, and an action. There must be whitespace between the parts.
The item names are similar to those used by
usbhidctl(1), but each part must be prefixed by its page name (use the
-v flag to
usbhidctl(1) to see the page name). Replace spaces in the item name by underscores.
The value is simply a numeric value. When the item reports this value the action will be performed. If the value is `*' it will match any value.
The action is a normal command that is executed with
system(3). Before it is executed some substitution will occur: `$n' will be replaced by the nth argument on the command line, `$V' will be replaced by the numeric value of the HID item, `$N' will be replaced by the name of the control, and `$H' will be replaced by the name of the HID device.