Crates.io | query-keyboard |
lib.rs | query-keyboard |
version | 1.1.0 |
source | src |
created_at | 2022-08-03 18:58:01.743056 |
updated_at | 2022-08-06 13:45:55.014881 |
description | Simple CLI tool to check which keys are pressed |
homepage | |
repository | https://github.com/texel-sensei/query-keyboard |
max_upload_size | |
id | 638275 |
size | 13,027 |
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.
query-keyboard LShift A
query-keyboard --hold-for 0.2 Enter