Skip to content

Instantly share code, notes, and snippets.

@SubFive
Last active December 12, 2018 21:08
Show Gist options
  • Save SubFive/f865bd2d866b84b5b61abc1d5e8b600d to your computer and use it in GitHub Desktop.
Save SubFive/f865bd2d866b84b5b61abc1d5e8b600d to your computer and use it in GitHub Desktop.
xmodmap: invert keyboard top-row numbers with symbols, square brackets with curly brackets, and backslash with pipeline
keycode 10 = exclam 1 1 exclam onesuperior exclamdown
keycode 11 = at 2 2 at twosuperior onehalf
keycode 12 = numbersign 3 3 numbersign threesuperior threequarters
keycode 13 = dollar 4 4 dollar sterling onequarter
keycode 14 = percent 5 5 percent cent threeeighths
keycode 15 = diaeresis 6 6 asciicircum notsign notsign
keycode 16 = ampersand 7 7 ampersand braceleft seveneighths
keycode 17 = asterisk 8 8 asterisk bracketleft trademark
keycode 18 = parenleft 9 9 parenleft bracketright plusminus
keycode 19 = parenright 0 0 parenright braceright degree
keycode 35 = braceleft bracketleft bracketright braceright ordfeminine dead_macron
keycode 51 = braceright bracketright backslash bar masculine masculine
keycode 94 = bar backslash backslash bar masculine dead_breve masculine dead_breve
@SubFive
Copy link
Author

SubFive commented Dec 12, 2018

curl -L -o ~/.Xmodmap https://gist.github.com/jairovsky/f865bd2d866b84b5b61abc1d5e8b600d/raw/fac5b9a443823b9a14659610ffc9a5197f9295ea/.Xmodmap
xmodmap ~/.Xmodmap

No more shift-holding for typing parens or curly braces :)

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