/evwait

Wait an evdev kernel event

Primary LanguageCGNU General Public License v2.0GPL-2.0

Summary
=======
evwait is a tool to wait for an evdev kernel event. It reads directly from the kernel device.

Usage:
   evwait "AT Translated Set 2 keyboard" KEY_A 1 && echo "Key A pressed"

Note: in most cases evwait needs to run as root to be able to read the devices.