Skip to content

A daemon to monitor key inputs and trigger user-defined commands

License

Notifications You must be signed in to change notification settings

observer1/input-event-daemon

 
 

Repository files navigation

Input Event Daemon

A daemon that monitors key events from input devices and runs user-defined commands accordingly. For convenience, a small timout is started after a key press in order to wait for additional inputs to form a combination.

This daemon supports any device managed by the evdev kernel system, so virtually any keyboard. A few ARM boards also feature an IR receiver. When a kernel driver is available as it is the case with Cubieboards for example, one can use the evdev device directly instead.

Note: this project is independent from the excellent but unmaintained daemon made by gandro.

Dependencies

Configuration

[commands]
user = nobody  ; user to run commands as
group = nobody

[/dev/input/event0]
KEY_1 =
    mpc listall | head -12 | tail -1 | mpc add  ; pipes are supported
    mpc play  ; several commands can be given
# ...
KEY_1 + KEY_2 =  ; key combos are supported
    mpc listall | head -12 | tail -1 | mpc add
    mpc play

About

A daemon to monitor key inputs and trigger user-defined commands

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%