Skip to content

Instantly share code, notes, and snippets.

@jodoherty
Last active January 30, 2023 01:25
Show Gist options
  • Select an option

  • Save jodoherty/ff2bed664fb88ce79f0fcc2565c5a9b4 to your computer and use it in GitHub Desktop.

Select an option

Save jodoherty/ff2bed664fb88ce79f0fcc2565c5a9b4 to your computer and use it in GitHub Desktop.
Thinkpad udev keyboard tweaks
evdev:atkbd:dmi:bvn*:bvr*:bd*:svnLENOVO*:pn*:pvrThinkPad*
KEYBOARD_KEY_b7=rightmeta
KEYBOARD_KEY_3a=esc
KEYBOARD_KEY_01=capslock
evdev:atkbd:dmi:bvn*:bvr*:bd*:svnLENOVO*:pn*:pvrThinkPad*
KEYBOARD_KEY_dd=rightmeta
KEYBOARD_KEY_3a=esc
KEYBOARD_KEY_01=capslock

Thinkpad udev keyboard tweaks

The right side of the Thinkpad keyboard has a menu button or (on newer systems) a print key button. These udev hwdb files can be place in /etc/udev/hwdb.d to turn these unfortunate key choices into right Meta/Super keys.

I also swap Escape and Caps Lock.

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