bin/keycode-show

7 lines
165 B
Plaintext
Raw Normal View History

2020-08-09 12:53:06 +00:00
#!/bin/sh
# https://wiki.archlinux.org/index.php/Keyboard_input#Using_evtest
xev | awk -F'[ )]+' '/^KeyPress/ { a[NR+2] } NR in a { printf "%-3s %s\n", $5, $8 }'