Skip to content

Instantly share code, notes, and snippets.

@furui
Created December 15, 2019 02:59
Show Gist options
  • Save furui/37797ec7b51778a0f1faafa470772ab6 to your computer and use it in GitHub Desktop.
Save furui/37797ec7b51778a0f1faafa470772ab6 to your computer and use it in GitHub Desktop.
Keychron K2 udev hwdb to remap PgUp, PgDn, Home, and End to laptop style layout (Home, PgUp, PgDn, End)
evdev:input:b0003v05ACp024F*
KEYBOARD_KEY_7004b=home
KEYBOARD_KEY_7004e=pageup
KEYBOARD_KEY_7004a=pagedown
@furui
Copy link
Author

furui commented Feb 29, 2020

  1. Copy into /etc/udev/hwdb.d/
  2. Execute sudo systemd-hwdb update
  3. Execute sudo udevadm trigger (all USB devices will be reset)

It won't fix the keys themselves though, you'll need to get keycaps. It also won't fix Bluetooth. You'll probably need a different solution for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment