version 1.3, 2003/01/11 11:07:50 |
version 1.4, 2003/06/10 09:12:12 |
|
|
.It Fl i |
.It Fl i |
Ignore HID items in the config file that do not exist in the device. |
Ignore HID items in the config file that do not exist in the device. |
.It Fl f Ar device |
.It Fl f Ar device |
Specify a path name for the device to operate on. If |
Specify a path name for the device to operate on. |
|
If |
.Ar device |
.Ar device |
is numeric, it is taken to be the USB HID device number. If it is a relative |
is numeric, it is taken to be the USB HID device number. |
path, it is taken to be the name of the device under |
If it is a relative path, it is taken to be the name of the device under |
.Pa /dev . |
.Pa /dev . |
An absolute path is taken to be the literal device pathname. |
An absolute path is taken to be the literal device pathname. |
.It Fl v |
.It Fl v |
|
|
.Pp |
.Pp |
The config file will be re-read if the process gets a HUP signal. |
The config file will be re-read if the process gets a HUP signal. |
.Sh CONFIGURATION |
.Sh CONFIGURATION |
The configuration file has a very simple format. Each line describes an |
The configuration file has a very simple format. |
action; if a line begins with a whitespace it is considered a continuation |
Each line describes an action; if a line begins with a whitespace |
of the previous line. Lines beginning with `#' are considered as comments. |
it is considered a continuation of the previous line. |
|
Lines beginning with `#' are considered as comments. |
.Pp |
.Pp |
Each line has three parts: a name of a USB HID item, a value for that item, |
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. |
and an action. |
|
There must be whitespace between the parts. |
.Pp |
.Pp |
The item names are similar to those used by |
The item names are similar to those used by |
.Xr usbhidctl 1 , |
.Xr usbhidctl 1 , |
but each part must be prefixed by its page name. |
but each part must be prefixed by its page name. |
.Pp |
.Pp |
The value is simply a numeric value. When the item reports this value |
The value is simply a numeric value. |
the action will be performed. |
When the item reports this value the action will be performed. |
If the value is `*' it will match any value. |
If the value is `*' it will match any value. |
.Pp |
.Pp |
The action is a normal command that is executed with |
The action is a normal command that is executed with |