Files
buffybox/iskey
Caleb Connolly 704f23576a iskey: new utility
iskey tells you if any of a given list of keys are pressed on any input
device in the system.

e.g.

$ iskey KEY_VOLUMEDOWN

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
2024-04-14 20:16:30 +01:00
..
2024-04-14 20:16:30 +01:00
2024-04-14 20:16:30 +01:00
2024-04-14 20:16:30 +01:00

iskey

A tiny utility for determining if a key is pressed.

iskey is intended to be used in the context of a constrained environment like the initramfs, it allows for easily scripting things like "is the user holding volume down" which are generally non-trivial to check for in a shell script.