~quf/xinput-keycode-logger

Logs and prints keycodes of pressed keys.

refs

trunk
browse  log 

clone

read-only
https://git.sr.ht/~quf/xinput-keycode-logger
read/write
git@git.sr.ht:~quf/xinput-keycode-logger

You can also use your local clone with git send-email.

#xinput-keycode-logger

Logs keycodes by means of the X.org XInputExtension.

#Install/run

$ git clone https://git.sr.ht/~quf/xinput-keycode-logger
 ... (output omitted)
$ cd xinput-keycode-logger
$ cargo run --release
 ... (cargo output omitted)
interrupt with Ctrl+C
pressed keycodes: []
 ... (mashing the number row keys, then Ctrl+C)
pressed keycodes: [20]
pressed keycodes: [19, 20]
pressed keycodes: [19, 20, 37]
pressed keycodes: [19, 20]
pressed keycodes: [17, 19, 20]
pressed keycodes: [11, 17, 19, 20]
pressed keycodes: [11, 16, 17, 19, 20]
pressed keycodes: [11, 14, 16, 17, 19, 20]
pressed keycodes: [11, 14, 16, 17, 19, 20, 37]
pressed keycodes: [11, 14, 16, 17, 19, 20]
pressed keycodes: [11, 14, 16, 17, 19]
pressed keycodes: [11, 14, 16, 17]
pressed keycodes: [11, 14, 16]
pressed keycodes: [11, 14]
pressed keycodes: [11, 12, 14]
pressed keycodes: [12, 14]
pressed keycodes: [12, 14, 16]
pressed keycodes: [12, 14, 16, 20]
pressed keycodes: [14, 16, 20]
pressed keycodes: [16, 20]
pressed keycodes: [20]
pressed keycodes: []
pressed keycodes: [37]
pressed keycodes: [27, 37]

#License

Use for non-nefarious purposes.