Skip to content

Instantly share code, notes, and snippets.

@amosbird
Last active April 2, 2017 11:10
Show Gist options
  • Save amosbird/14c5ae579088f3d0c237021c974a0aa9 to your computer and use it in GitHub Desktop.
Save amosbird/14c5ae579088f3d0c237021c974a0aa9 to your computer and use it in GitHub Desktop.
❯ cat /usr/share/X11/xkb/symbols/altwin
// Meta is mapped to second level of Alt keys.
partial modifier_keys
xkb_symbols "meta_alt" {
key <LALT> { [ Alt_L, Meta_L ] };
key <RALT> { type[Group1] = "TWO_LEVEL",
symbols[Group1] = [ Hyper_R ] };
modifier_map Mod1 { Alt_L, Alt_R, Meta_L, Meta_R };
modifier_map Mod3 { Hyper_R };
// modifier_map Mod4 {};
};
❯ cat /etc/udev/hwdb.d/90-custom-keyboard.hwdb
evdev:atkbd:dmi:bvn*:bvr*:bd*:svnLENOVO*:pn*:pvrThinkPadT450s*
KEYBOARD_KEY_7b=57
KEYBOARD_KEY_39=42
KEYBOARD_KEY_79=14
KEYBOARD_KEY_70=leftctrl
KEYBOARD_KEY_7d=14
KEYBOARD_KEY_73=54
evdev:input:b0005v17EFp6048*
KEYBOARD_KEY_7008b=57
KEYBOARD_KEY_7002c=42
KEYBOARD_KEY_7008a=14
KEYBOARD_KEY_70088=leftctrl
KEYBOARD_KEY_70089=14
KEYBOARD_KEY_70087=54
❯ cat /etc/udev/rules.d/99-trackpoint.rules
ACTION=="add", SUBSYSTEM=="input", ATTR{name}=="TPPS/2 IBM TrackPoint", ATTR{device/sensitivity}="210", ATTR{device/speed}="255"
SUBSYSTEM=="input", \
ATTRS{name}=="ThinkPad Compact Bluetooth Keyboard with TrackPoint", \
RUN+="/home/amos/softwares/tp-compact-keyboard/tp-compact-keyboard --sensitivity 600"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment