aboutsummaryrefslogtreecommitdiff
path: root/01-keyboard.hwdb
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2022-12-16 19:17:02 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2022-12-16 19:17:02 -0500
commit30f16cde9920c2debf73b48d92eb722ada9cbcb3 (patch)
tree15dd1dc55604f9745d358dedbe35f1cd3b13f786 /01-keyboard.hwdb
parent064282da907cdeefcc13f272be08f0b2ddb0206c (diff)
downloaddotfiles-30f16cde9920c2debf73b48d92eb722ada9cbcb3.tar.gz
dotfiles-30f16cde9920c2debf73b48d92eb722ada9cbcb3.tar.xz
Add a hwdb file for remapping the keyboard
Diffstat (limited to '01-keyboard.hwdb')
-rw-r--r--01-keyboard.hwdb12
1 files changed, 12 insertions, 0 deletions
diff --git a/01-keyboard.hwdb b/01-keyboard.hwdb
new file mode 100644
index 0000000..f7a41b6
--- /dev/null
+++ b/01-keyboard.hwdb
@@ -0,0 +1,12 @@
+# /etc/udev.d/hwdb/01-keyboard.hwdb
+# https://wiki.archlinux.org/title/map_scancodes_to_keycodes
+# also `yum -y install evtest`
+# This is a fucking lifesaver
+# evdev:name:AT Translated Set 2 keyboard:*
+# systemd-hwdb update && udevadm trigger
+# This should match all AT keyboards, apparently
+evdev:atkbd:dmi:bvn*:bvr*:bd*:svn*:pn*:pvr*
+ KEYBOARD_KEY_3a=leftctrl
+ KEYBOARD_KEY_1d=leftctrl
+ KEYBOARD_KEY_9d=capslock
+