update bitvec
simplify
initial
Logs keycodes by means of the X.org XInputExtension.
$ 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]
Use for non-nefarious purposes.