dotfiles/.local/bin/keycode

5 lines
99 B
Text
Raw Normal View History

2018-12-26 00:40:38 +01:00
#!/bin/bash
xev | awk -F'[ )]+' '/^KeyPress/ { a[NR+2] } NR in a { printf "%-3s %s\n", $5, $8 }'