XInput event monitor daemon
inputplug =========
inputplug is a very simple daemon which monitors XInput events and runs arbitrary scripts on hierarchy change events (such as a device being attached, removed, enabled or disabled).
To build the project, run cargo build.
*
NAME
inputplug โ XInput event monitor
SYNOPSIS
inputplug \[-v\] \[-n\] \[-d\] \[-0\] -c command-prefix
inputplug \[-h|--help\]
DESCRIPTION
inputplug is a daemon which connects to a running X server and monitors its XInput hierarchy change events. Such events arrive when a device is being attached or removed, enabled or disabled etc.
When a hierarchy change happens, inputplug parses the event notification structure, and calls the command specified by command-prefix. The command receives four arguments:
- command-prefix event-type device-id device-type device-name
- XIMasterAdded
- XIMasterRemoved
- XISlaveAdded
- XISlaveRemoved
- XISlaveAttached
- XISlaveDetached
- XIDeviceEnabled
- XIDeviceDisabled
- XIMasterPointer
- XIMasterKeyboard
- XISlavePointer
- XISlaveKeyboard
- XIFloatingSlave
OPTIONS
A summary of options is included below.
- -h, --help
- -v
- -n
- -d
- -0
- -c command-prefix
- -p pidfile
ENVIRONMENT
- DISPLAY
SEE ALSO
COPYRIGHT
Copyright (C) 2013, 2014, 2018, 2020, 2021 Andrej Shadura.
Copyright (C) 2014, 2020 Vincent Bernat.
Licensed as MIT/X11.
AUTHOR
Andrej Shadura