m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Chrzanowski <m@m-chrzan.xyz>2023-06-18 01:22:02 +0200
committerMarcin Chrzanowski <m@m-chrzan.xyz>2023-06-18 01:22:02 +0200
commit2eb9a6f33820ca02cef1b8993c64f744cfe7d3b3 (patch)
tree353efd9507514d73a7f3e1ae1d90bde513b0807f
parent8db42981047c880c25a291324a3cd064dc601c36 (diff)
Add keycode identification
-rw-r--r--keyboard.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/keyboard.md b/keyboard.md
new file mode 100644
index 0000000..9ecd548
--- /dev/null
+++ b/keyboard.md
@@ -0,0 +1,5 @@
+# Dealing with keyboards and their inputs
+
+Identifying keycodes:
+
+ xev | awk -F'[ )]+' '/^KeyPress/ { a[NR+2] } NR in a { printf "%-3s %s\n", $5, $8 }'