summaryrefslogtreecommitdiff
path: root/.local/bin/desktop/detect-keys
blob: da00dad905b83515a11dea084873e6afb3f804ec (plain)
1
2
3
#!/bin/sh

xev | awk -F'[ )]+' '/^KeyPress/ { a[NR+2] } NR in a { printf "%-3s %s\n", $5, $8 }'