Crates.io | inputstat |
lib.rs | inputstat |
version | 0.1.2 |
source | src |
created_at | 2022-05-05 06:47:23.654907 |
updated_at | 2022-08-09 03:08:25.01857 |
description | a vmstat-like tool which monitors keyboard and mouse events |
homepage | |
repository | https://github.com/sugarfillet/inputstat |
max_upload_size | |
id | 580852 |
size | 10,111 |
inputstat is a vmstat-like tool which monitors keyboard and mouse events on linux. in detail, collects and reports the activity statistics of keyboard and mouse. And it is written by rust.
$ sudo inputstat -k /dev/input/event5 -m /dev/input/event6 5 # print every 5 seconds
>> summary counts 14676 ## keyboard counts 9460 ## mouse counts 5216
>> KEY_BACKSPACE -> 1181 ## KEY_SPACE -> 719 ## KEY_J -> 432 ## KEY_LEFTCTRL -> 402 ## KEY_I -> 376 ##
>> WHEEL -> 3401 ## BTN_LEFT -> 1778 ## BTN_RIGHT -> 30 ## BTN_MIDDLE -> 7 ##
>> summary counts 14676 ## keyboard counts 9460 ## mouse counts 5216
>> KEY_BACKSPACE -> 1181 ## KEY_SPACE -> 719 ## KEY_J -> 432 ## KEY_LEFTCTRL -> 402 ## KEY_I -> 376 ##
>> WHEEL -> 3401 ## BTN_LEFT -> 1778 ## BTN_RIGHT -> 30 ## BTN_MIDDLE -> 7 ##
cargo install inputstat
k_thread m_thread collect_thread display_thread
|______|____mpsc_____7 \_____Arc______|