linput

Listen to input events
git clone git://git.akobets.xyz/linput
Log | Files | Refs | README | LICENSE

commit b33ea547edc095d60274ebd4223d839763f73cc6
parent b059a8f03f68388eaa3c9cf0e54d258902147d84
Author: Artem Kobets <artem@akobets.xyz>
Date:   Sun, 19 Apr 2020 13:53:38 +0300

docs

Diffstat:
MREADME | 23+++++++++++------------
Mlinput.1 | 11+++++------
2 files changed, 16 insertions(+), 18 deletions(-)

diff --git a/README b/README @@ -1,17 +1,16 @@ -linput - listen to input events. +linput \- listen to input events -linput is an input event listener that runs a given script when a -certain sequence of events has occurred. It reads event data -from /dev/input/event* files. +linput is an input event listener that runs a given command when a rule is matched. +It reads input data from /dev/input/event* files. -Two types of rules can be specified: events and hotkeys +Two types of rules can be specified: events and hotkeys. -Events are simple rules that listen to a specific event. +Events are simple rules that can match any input event. -Hotkeys are rules specifically for keyboard events, which match -familiar hotkey behavior. You can specify a -modifier mask (Ctrl, Alt, etc.), a list of regular keys -that need to be pressed at once, and an event mask -(trigger on press, release or hold). +Hotkeys are rules specifically for keyboard events. +You can specify a modifier mask (Ctrl, Alt, etc.), +a list of regular keys, and an event mask (trigger on press, release or hold). -linput is customized through editing a config.h file and recompiling the source code. +linput is customized through editing config.h file and recompiling source code. + +Author: Artem Kobets <artem@akobets.xyz> diff --git a/linput.1 b/linput.1 @@ -6,9 +6,8 @@ linput \- listen to input events [-v] .SH DESCRIPTION .B linput -is an input event listener that runs a given command when a -certain sequence of events has occurred. It reads event data -from /dev/input/event* files. +is an input event listener that runs a given command when a rule is matched. +It reads input data from /dev/input/event* files. Two types of rules can be specified: .B events @@ -16,11 +15,11 @@ and .B hotkeys .B Events -are simple rules that listen to a specific event. +are simple rules that can match any input event. .B Hotkeys -are rules specifically for keyboard events, which match -familiar hotkey behavior. You can specify a modifier mask (Ctrl, Alt, etc.), +are rules specifically for keyboard events. +You can specify a modifier mask (Ctrl, Alt, etc.), a list of regular keys, and an event mask (trigger on press, release or hold). linput is customized through editing config.h file and recompiling source code.