Skip to content

Instantly share code, notes, and snippets.

@m2ym
Created November 17, 2011 12:47
Show Gist options
  • Save m2ym/1373057 to your computer and use it in GitHub Desktop.
Save m2ym/1373057 to your computer and use it in GitHub Desktop.
My xkeyremap configuration
#-*-ruby-*-
device /AT Translate|HHKB/
key C-M-S-q { quit }
# swap number keys
key[_1] = exclam, _1
key[_2] = at, _2
key[_3] = numbersign, _3
key[_4] = dollar, _4
key[_5] = percent, _5
key[_6] = asciicircum, _6
key[_7] = ampersand, _7
key[_8] = asterisk, _8
key[_9] = parenleft, _9
key[_0] = parenright, _0
# remap symbol keys
key[20] = equal, question
key[21] = colon, plus
key[34] = bracketleft, braceleft
key[35] = bracketright, braceright
key[47] = semicolon, apostrophe
key[48] = minus, quotedbl
key[59] = comma, less
key[60] = period, greater
key[61] = slash, underscore
# remap modifiers
#mod[lock] -= 66
#mod[control] += 66
sands
#oneshot_modifier Control_L, Control_L, Escape
# workaround
#oneshot_modifier Caps_Lock, Control_L, Control_L
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment