query-keyboard

Crates.ioquery-keyboard
lib.rsquery-keyboard
version1.1.0
sourcesrc
created_at2022-08-03 18:58:01.743056
updated_at2022-08-06 13:45:55.014881
descriptionSimple CLI tool to check which keys are pressed
homepage
repositoryhttps://github.com/texel-sensei/query-keyboard
max_upload_size
id638275
size13,027
(texel-sensei)

documentation

README

query-keyboard

Simple script to query which keys are hold on the keyboard.

Returns 0 if all keys specified on the command line are hold and 1 otherwise.

Requires libx11-dev on Linux.

The --hold-for parameter can be used to specify a time in seconds for which the keys need to be held. If a key is released before this time has expired, then the script will return 1.

Example

query-keyboard LShift A

query-keyboard --hold-for 0.2 Enter
Commit count: 4

cargo fmt