Skip to content

Instantly share code, notes, and snippets.

@jigangkim
Created September 30, 2021 10:25
Show Gist options
  • Save jigangkim/a48eb3ed56168ddbe812fd58d7813358 to your computer and use it in GitHub Desktop.
Save jigangkim/a48eb3ed56168ddbe812fd58d7813358 to your computer and use it in GitHub Desktop.
Remap keys with ~/.Xmodmap (deprecated)
keycode 105 = Hangul_Hanja NoSymbol Hangul_Hanja
keycode 108 = Hangul NoSymbol Hangul
keycode 191 = Print NoSymbol Print
keycode 192 = Scroll_Lock NoSymbol Scroll_Lock
keycode 193 = Pause NoSymbol Pause
keycode 197 = XF86Launch1 NoSymbol XF86Launch1

Generate .xkbmap with Xmodmap

xkbcomp $DISPLAY $HOME/.xkbmap-orig # original config
xmodmap ~/.Xmodmap # apply keyboard remap
xkbcomp $DISPLAY $HOME/.xkbmap # updated config
diff .xkbmap-orig .xkbmap # check which entries to modify -> apply them to /usr/share/X11/xkb/symbols/pc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment