Skip to content
Snippets Groups Projects
Forked from postmarketOS / BuffyBox
69 commits behind the upstream repository.
Caleb Connolly's avatar
Casey authored
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: default avatarCaleb Connolly <caleb.connolly@linaro.org>
704f2357
History
Name Last commit Last update
..
README.md
iskey.c
meson.build

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.