Utility for mapping
keys/combinations to other keys/combinations/commands. Events are read from
a single keyboard via an event device and any mapped keys are passed back
to the kernel through a virtual input (uinput) device.
The configuration file allows one directive per line
with arguments seperated by spaces/tabs, lines starting with a hash (#)
character are ignored. Single keys or combinations using the x+y+z syntax
may be used with all directives. The following directives may be used:
map
<key a> <key b>
Map key a to b. For example ’map 75 125+103’ maps key 75 to combination
125+103.
drop <key>
Drop events recieved for the given key. If a combination
is supplied, the individual keys will not be ignored, only the inputs from
the last key in the combination while the rest are held down. Using this
while sink mode (-s) is in use is redundant as all unmapped keys will be
ignored by default.
exec <key> <command>
Execute a shell command when the given
key is pressed or autorepeats. The terminal will be redirected to /dev/null
when kbbind is running as a daemon.
alias <name> <key>
Set an alias to the specified
key, any existing alias will be replaced. The alias may refer to a combination
and may be used anywhere, for example, the following map statements are
effectively the same: