aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2024-01-20 13:01:12 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2024-01-20 13:01:12 -0500
commit7f12f2f81574bb8e76aed5a6a65ad23bde32eae4 (patch)
tree30b44a369f5cbc6861eecbf5767f7d6315c17aeb
parentd6d4c91060b3901b17e5570cfd8f8cb45fe632fb (diff)
downloaddotfiles-7f12f2f81574bb8e76aed5a6a65ad23bde32eae4.tar.gz
dotfiles-7f12f2f81574bb8e76aed5a6a65ad23bde32eae4.tar.xz
Add keyboard remapping for the old macbook air
-rw-r--r--remap-macbookair.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/remap-macbookair.sh b/remap-macbookair.sh
new file mode 100644
index 0000000..ac209c0
--- /dev/null
+++ b/remap-macbookair.sh
@@ -0,0 +1,12 @@
+# Example can be hand via evemu-describe and grabbing the DMI line.
+# This should match most apple keyboards, though.
+#
+# From for remapping you'll want to run `evtest` for the input,
+# the keyboard key code, take the value you get from the type 4 EV_MSC
+# lines
+evdev:*:dmi:bvnAppleInc.:bvr*:bd*:br0.1:svn*:pn*:pvr*
+ KEYBOARD_KEY_70039=leftctrl
+ KEYBOARD_KEY_700e3=leftalt
+ KEYBOARD_KEY_700e2=leftmeta
+ KEYBOARD_KEY_700e6=capslock
+