Skip to content

Instantly share code, notes, and snippets.

@tmbdev
Created September 8, 2015 21:56
Show Gist options
  • Save tmbdev/e2ac686c66f8eaf6072d to your computer and use it in GitHub Desktop.
Save tmbdev/e2ac686c66f8eaf6072d to your computer and use it in GitHub Desktop.
! we use the Caps_Lock and Return keys for both space and carriage return
! unshifted is space, shifted is carriage return (fortunately, neither has
! a shifted meaning on a normal keyboard)
! space bar
keycode 65 = Mode_switch
! caps lock key
keycode 66 = space space Return Return
! Return key
keycode 36 = space space Return Return
! these are pretty inconvenient to type one handed, so
! let's them map to spaces for now; maybe I'll come up
! with a more useful mapping eventually
! left windows
keycode 115 = space
! right menu
keycode 117 = space
keycode 116 = space
! left alt
keycode 64 = space
! right alt
keycode 113 = space
keysym q = q Q p P
keysym w = w W o O
keysym e = e E i I
keysym r = r R u U
keysym t = t T y Y
keysym y = y Y t T
keysym u = u U r R
keysym i = i I e E
keysym o = o O w W
keysym p = p P q Q
keysym a = a A semicolon colon
keysym s = s S l L
keysym d = d D k K
keysym f = f F j J
keysym g = g G h H
keysym h = h H g G
keysym j = j J f F
keysym k = k K d D
keysym l = l L s S
keysym semicolon = semicolon colon a A
keysym z = z Z slash question
keysym x = x X period greater
keysym c = c C comma less
keysym v = v V m M
keysym b = b B n N
keysym n = n N b B
keysym m = m M v V
keysym comma = comma less c C
keysym period = period greater x X
keysym slash = slash question z Z
keysym grave = grave asciitilde minus underscore
keysym 1 = 1 exclam 0 parenright
keysym 2 = 2 at 9 parenleft
keysym 3 = 3 numbersign 8 asterisk
keysym 4 = 4 dollar 7 ampersand
keysym 5 = 5 percent 6 asciicircum
keysym 6 = 6 asciicircum 5 percent
keysym 7 = 7 ampersand 4 dollar
keysym 8 = 8 asterisk 3 numbersign
keysym 9 = 9 parenleft 2 at
keysym 0 = 0 parenright 1 exclam
keysym minus = minus underscore grave asciitilde
keysym Tab = Tab ISO_Left_Tab BackSpace Delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment