Please note: I am not the author of these files and don't mail me if you find something incorrect in them. These files were taken from the GNOME distribution and the main focus of this howto is to tell you how to map various keycode entities, so that you can make your own keyboard layouts. Use right Alt to switch the keyboard.
clear Mod1
clear Mod2
keycode 9 = Escape Escape
keycode 10 = 1 exclam
keycode 11 = 2 quotedbl twosuperior
keycode 12 = 3 section threesuperior
keycode 13 = 4 dollar dollar
keycode 14 = 5 percent
keycode 15 = 6 ampersand
keycode 16 = 7 slash braceleft
keycode 17 = 8 parenleft bracketleft
keycode 18 = 9 parenright bracketright
keycode 19 = 0 equal braceright
keycode 20 = ssharp question backslash
keycode 21 = dead_acute dead_grave
keycode 22 = BackSpace Delete
keycode 23 = Tab Tab
keycode 24 = q Q at
keycode 25 = w
keycode 26 = e
keycode 27 = r
keycode 28 = t
keycode 29 = z
keycode 30 = u
keycode 31 = i
keycode 32 = o
keycode 33 = p
keycode 34 = udiaeresis Udiaeresis
keycode 35 = plus asterisk dead_tilde
keycode 36 = Return
keycode 37 = Control_L
keycode 38 = a
keycode 39 = s
keycode 40 = d
keycode 41 = f
keycode 42 = g
keycode 43 = h
keycode 44 = j
keycode 45 = k
keycode 46 = l
keycode 47 = odiaeresis Odiaeresis
keycode 48 = adiaeresis Adiaeresis
keycode 49 = dead_circumflex degree
keycode 50 = Shift_L
keycode 51 = numbersign apostrophe
keycode 52 = y
keycode 53 = x
keycode 54 = c
keycode 55 = v
keycode 56 = b
keycode 57 = n
keycode 58 = m
keycode 59 = comma semicolon
keycode 60 = period colon Multi_key
keycode 61 = minus underscore
keycode 62 = Shift_R
keycode 63 = KP_Multiply
keycode 64 = Alt_L Meta_L
keycode 65 = space space
keycode 66 = Caps_Lock
keycode 67 = F1 F11
keycode 68 = F2 F12
keycode 69 = F3 F13
keycode 70 = F4 F14
keycode 71 = F5 F15
keycode 72 = F6 F16
keycode 73 = F7 F17
keycode 74 = F8 F18
keycode 75 = F9 F19
keycode 76 = F10 F20
keycode 77 = Num_Lock
keycode 78 = Scroll_Lock
keycode 79 = KP_7
keycode 80 = KP_8
keycode 81 = KP_9
keycode 82 = KP_Subtract
keycode 83 = KP_4
keycode 84 = KP_5
keycode 85 = KP_6
keycode 86 = KP_Add
keycode 87 = KP_1
keycode 88 = KP_2
keycode 89 = KP_3
keycode 90 = KP_0
keycode 91 = KP_Decimal
keycode 94 = less greater bar
keycode 95 = F11 F11
keycode 96 = F12 F12
keycode 108 = KP_Enter
keycode 109 = Control_R
keycode 112 = KP_Divide
keycode 113 = Mode_switch
keycode 114 = Break
keycode 110 = Find
keycode 98 = Up
keycode 99 = Prior
keycode 100 = Left
keycode 102 = Right
keycode 115 = Select
keycode 104 = Down
keycode 105 = Next
keycode 106 = Insert
! right windows-logo key
! in "windows" keyboards the position of the key is annoying, is where AltGr
! usually resides, so go define it as AltGr
keycode 116 = Mode_switch
! right windows-menu key
keycode 117 = Multi_key
add Mod1 = Alt_L
add Mod2 = Mode_switch
clear Mod1
clear Mod2
!charset "iso-8859-2"
keycode 9 = Escape
keycode 10 = 1 apostrophe asciitilde
keycode 11 = 2 quotedbl dead_caron
keycode 12 = 3 plus dead_circumflex
keycode 13 = 4 exclam dead_breve
keycode 14 = 5 percent degree
keycode 15 = 6 slash dead_ogonek
keycode 16 = 7 equal dead_grave
keycode 17 = 8 parenleft dead_abovedot
keycode 18 = 9 parenright dead_acute
keycode 19 = odiaeresis Odiaeresis dead_doubleacute
keycode 20 = udiaeresis Udiaeresis dead_diaeresis
keycode 21 = oacute Oacute dead_cedilla
keycode 22 = BackSpace Delete
keycode 23 = Tab Tab
keycode 24 = q Q backslash
keycode 25 = w W bar
keycode 26 = e E currency
keycode 27 = r
keycode 28 = t
keycode 29 = z
keycode 30 = u
keycode 31 = i I iacute Iacute
keycode 32 = o
keycode 33 = p
keycode 34 = odoubleacute Odoubleacute division
keycode 35 = uacute Uacute
keycode 36 = Return
keycode 37 = Control_L
keycode 38 = a
keycode 39 = s S dstroke
keycode 40 = d D Dstroke
keycode 41 = f F bracketleft
keycode 42 = g G bracketright
keycode 43 = h
keycode 44 = j J Iacute iacute
keycode 45 = k K lstroke Lstroke
keycode 46 = l L Lstroke lstroke
keycode 47 = eacute Eacute dollar
keycode 48 = aacute Aacute ssharp
keycode 49 = 0 section
keycode 50 = Shift_L
keycode 51 = udoubleacute Udoubleacute currency
keycode 52 = y Y greater
keycode 53 = x X numbersign
keycode 54 = c C ampersand
keycode 55 = v V at
keycode 56 = b B braceleft
keycode 57 = n N braceright
keycode 58 = m
keycode 59 = comma question semicolon
keycode 60 = period colon Multi_key
keycode 61 = minus underscore asterisk
keycode 62 = Shift_R
keycode 63 = KP_Multiply
keycode 64 = Alt_L Meta_L
keycode 65 = space space
keycode 66 = Caps_Lock
keycode 67 = F1 F11
keycode 68 = F2 F12
keycode 69 = F3 F13
keycode 70 = F4 F14
keycode 71 = F5 F15
keycode 72 = F6 F16
keycode 73 = F7 F17
keycode 74 = F8 F18
keycode 75 = F9 F19
keycode 76 = F10 F20
keycode 77 = Num_Lock
keycode 78 = Scroll_Lock
keycode 79 = KP_7
keycode 80 = KP_8
keycode 81 = KP_9
keycode 82 = KP_Subtract
keycode 83 = KP_4
keycode 84 = KP_5
keycode 85 = KP_6
keycode 86 = KP_Add
keycode 87 = KP_1
keycode 88 = KP_2
keycode 89 = KP_3
keycode 90 = KP_0
keycode 91 = KP_Decimal
keycode 94 = iacute Iacute less
keycode 95 = F11 F11
keycode 96 = F12 F12
keycode 108 = KP_Enter
keycode 109 = Control_R
keycode 112 = KP_Divide
keycode 113 = Mode_switch
keycode 114 = Break
keycode 110 = Find
keycode 98 = Up
keycode 99 = Prior
keycode 100 = Left
keycode 102 = Right
keycode 115 = Select
keycode 104 = Down
keycode 105 = Next
keycode 106 = Insert
keycode 107 = Delete
! as dead_ogonek, dead_caron, dead_breve and dead_doubleacute doesn't exist
! (yet), I put also compose lines for use with respectively dead_cedilla,
! dead_circumflex, dead_tilde and dead_tilde
add Mod1 = Alt_L
add Mod2 = Mode_switch
! Converted keytable file to xmodmap file
clear Mod1
clear Mod2
keycode 9 = Escape Escape
keycode 10 = plus 1 asciitilde
keycode 11 = ecaron 2 dead_caron
keycode 12 = scaron 3 asciicircum
keycode 13 = ccaron 4 dead_breve
keycode 14 = rcaron 5 degree
keycode 15 = zcaron 6 dead_ogonek
keycode 16 = yacute 7 dead_grave
keycode 17 = aacute 8 dead_abovedot
keycode 18 = iacute 9 dead_acute
keycode 19 = eacute 0 dead_doubleacute
keycode 20 = equal percent dead_diaeresis
keycode 21 = dead_acute dead_caron dead_cedilla
keycode 22 = BackSpace Delete
keycode 23 = Tab Tab
keycode 24 = q Q backslash
keycode 25 = w W bar
keycode 26 = e E currency
keycode 27 = r
keycode 28 = t
keycode 29 = z
keycode 30 = u
keycode 31 = i
keycode 32 = o
keycode 33 = p
keycode 34 = uacute slash division
keycode 35 = parenright parenleft
keycode 36 = Return
keycode 37 = Control_L
keycode 38 = a
keycode 39 = s S dstroke Dstroke
keycode 40 = d D Dstroke dstroke
keycode 41 = f F bracketleft
keycode 42 = g G bracketright
keycode 43 = h
keycode 44 = j
keycode 45 = k K lstroke Lstroke
keycode 46 = l L Lstroke lstroke
keycode 47 = uring quotedbl dollar
keycode 48 = section exclam ssharp
keycode 49 = semicolon degree
keycode 50 = Shift_L
keycode 51 = dead_diaeresis dead_acute currency
keycode 52 = y Y greater
keycode 53 = x X numbersign
keycode 54 = c
keycode 55 = v V at
keycode 56 = b B braceleft
keycode 57 = n N braceright
keycode 58 = m
keycode 59 = comma question
keycode 60 = period colon Multi_key
keycode 61 = minus underscore
keycode 62 = Shift_R
keycode 63 = KP_Multiply
keycode 64 = Alt_L Meta_L
keycode 65 = space space
keycode 66 = Caps_Lock
keycode 67 = F1 F11
keycode 68 = F2 F12
keycode 69 = F3 F13
keycode 70 = F4 F14
keycode 71 = F5 F15
keycode 72 = F6 F16
keycode 73 = F7 F17
keycode 74 = F8 F18
keycode 75 = F9 F19
keycode 76 = F10 F20
keycode 77 = Num_Lock
keycode 78 = Scroll_Lock
keycode 79 = KP_7
keycode 80 = KP_8
keycode 81 = KP_9
keycode 82 = KP_Subtract
keycode 83 = KP_4
keycode 84 = KP_5
keycode 85 = KP_6
keycode 86 = KP_Add
keycode 87 = KP_1
keycode 88 = KP_2
keycode 89 = KP_3
keycode 90 = KP_0
keycode 94 = ampersand asterisk less
keycode 95 = F11 F11
keycode 96 = F12 F12
keycode 108 = KP_Enter
keycode 109 = Control_R
keycode 112 = KP_Divide
keycode 113 = Mode_switch
keycode 114 = Break
keycode 110 = Find
keycode 98 = Up
keycode 99 = Prior
keycode 100 = Left
keycode 102 = Right
keycode 115 = Select
keycode 104 = Down
keycode 105 = Next
keycode 106 = Insert
! right windows-logo key
! in "windows" keyboards the position of the key is annoying, is where AltGr
! usually resides, so go define it as AltGr
keycode 116 = Mode_switch
! right windows-menu key
keycode 117 = Multi_key
add Mod1 = Alt_L
add Mod2 = Mode_switch
! The "AltGr" (right Alt) key generates Mode_switch
keycode 0x09 = Escape
keycode 0x43 = F1
keycode 0x44 = F2
keycode 0x45 = F3
keycode 0x46 = F4
keycode 0x47 = F5
keycode 0x48 = F6
keycode 0x49 = F7
keycode 0x4A = F8
keycode 0x4B = F9
keycode 0x4C = F10
keycode 0x5F = F11
keycode 0x60 = F12
keycode 0x6F = Print
keycode 0x4E = Multi_key
keycode 0x6E = Pause
keycode 0x31 = grave asciitilde
keycode 0x0A = 1 exclam
keycode 0x0B = 2 at
keycode 0x0C = 3 numbersign
keycode 0x0D = 4 dollar
keycode 0x0E = 5 percent
keycode 0x0F = 6 asciicircum
keycode 0x10 = 7 ampersand section
keycode 0x11 = 8 asterisk
keycode 0x12 = 9 parenleft
keycode 0x13 = 0 parenright
keycode 0x14 = minus underscore
keycode 0x15 = equal plus
keycode 0x33 = backslash bar
keycode 0x16 = BackSpace
keycode 0x6A = Insert
keycode 0x61 = Home
keycode 0x63 = Prior
keycode 0x4D = Num_Lock
keycode 0x70 = KP_Divide
keycode 0x3F = KP_Multiply
keycode 0x52 = KP_Subtract
keycode 0x17 = Tab
keycode 0x18 = Q
keycode 0x19 = W
keycode 0x1A = e E eogonek Eogonek
keycode 0x1B = R
keycode 0x1C = T
keycode 0x1D = Y
keycode 0x1E = U
keycode 0x1F = I
keycode 0x20 = o O oacute Oacute
keycode 0x21 = P
keycode 0x22 = bracketleft braceleft
keycode 0x23 = bracketright braceright
keycode 0x24 = Return
keycode 0x6B = Delete
keycode 0x67 = End
keycode 0x69 = Next
keycode 0x4F = KP_7
keycode 0x50 = KP_8
keycode 0x51 = KP_9
keycode 0x56 = KP_Add
keycode 0x42 = Caps_Lock
keycode 0x26 = a A aogonek Aogonek
keycode 0x27 = s S sacute Sacute
keycode 0x28 = D
keycode 0x29 = F
keycode 0x2A = G
keycode 0x2B = H
keycode 0x2C = J
keycode 0x2D = K
keycode 0x2E = l L lstroke Lstroke
keycode 0x2F = semicolon colon
keycode 0x30 = apostrophe quotedbl
keycode 0x53 = KP_4
keycode 0x54 = KP_5
keycode 0x55 = KP_6
keycode 0x32 = Shift_L
keycode 0x34 = z Z zabovedot Zabovedot
keycode 0x35 = x X zacute Zacute
keycode 0x36 = c C cacute Cacute
keycode 0x37 = V
keycode 0x38 = B
keycode 0x39 = n N nacute Nacute
keycode 0x3A = M
keycode 0x3B = comma less
keycode 0x3C = period greater Multi_key
keycode 0x3D = slash question
keycode 0x3E = Shift_R
keycode 0x62 = Up
keycode 0x57 = KP_1
keycode 0x58 = KP_2
keycode 0x59 = KP_3
keycode 0x6C = KP_Enter
keycode 0x25 = Control_L
keycode 0x40 = Alt_L Meta_L
keycode 0x41 = space
keycode 0x71 = Mode_switch
keycode 0x6D = Control_R
keycode 0x64 = Left
keycode 0x68 = Down
keycode 0x66 = Right
keycode 0x5A = KP_0
keycode 0x5B = KP_Decimal
! right windows-logo key
! in "windows" keyboards the position of the key is annoying, is where AltGr
! usually resides, so go define it as AltGr
keycode 116 = Mode_switch
! right windows-menu key
keycode 117 = Multi_key
clear Shift
clear Lock
clear Control
clear Mod1
clear Mod2
clear Mod3
clear Mod4
clear Mod5
add Shift = Shift_L Shift_R
add Lock = Caps_Lock
add Control = Control_L Control_R
add Mod1 = Alt_L
!Mode_switch
add Mod2 = Mode_switch
clear Mod1
clear Mod2
keycode 9 = Escape Escape
keycode 10 = ampersand 1
keycode 11 = eacute 2 dead_tilde
keycode 12 = quotedbl 3 numbersign
keycode 13 = apostrophe 4 braceleft
keycode 14 = parenleft 5 bracketleft
keycode 15 = minus 6 bar
keycode 16 = egrave 7 dead_grave
keycode 17 = underscore 8 backslash
keycode 18 = ccedilla 9 asciicircum
keycode 19 = agrave 0 at
keycode 20 = parenright degree bracketright
keycode 21 = equal plus braceright
keycode 22 = BackSpace
keycode 23 = Tab Tab
keycode 24 = a
keycode 25 = z
keycode 26 = e E currency
keycode 27 = r
keycode 28 = t
keycode 29 = y
keycode 30 = u
keycode 31 = i
keycode 32 = o
keycode 33 = p
keycode 34 = dead_circumflex dead_diaeresis
keycode 35 = dollar sterling currency
keycode 36 = Return
keycode 37 = Control_L
keycode 38 = q
keycode 39 = s
keycode 40 = d
keycode 41 = f
keycode 42 = g
keycode 43 = h
keycode 44 = j
keycode 45 = k
keycode 46 = l
keycode 47 = m M
keycode 48 = ugrave percent
keycode 49 = twosuperior
keycode 50 = Shift_L
keycode 51 = asterisk mu
keycode 52 = w
keycode 53 = x
keycode 54 = c
keycode 55 = v
keycode 56 = b
keycode 57 = n
keycode 58 = comma question dead_cedilla
keycode 59 = semicolon period
keycode 60 = colon slash Multi_key
keycode 61 = exclam section
keycode 62 = Shift_R
keycode 63 = KP_Multiply
keycode 64 = Alt_L Meta_L
keycode 65 = space space
keycode 66 = Caps_Lock
keycode 67 = F1 F11
keycode 68 = F2 F12
keycode 69 = F3 F13
keycode 70 = F4 F14
keycode 71 = F5 F15
keycode 72 = F6 F16
keycode 73 = F7 F17
keycode 74 = F8 F18
keycode 75 = F9 F19
keycode 76 = F10 F20
keycode 77 = Num_Lock
keycode 78 = Scroll_Lock
keycode 79 = KP_7
keycode 80 = KP_8
keycode 81 = KP_9
keycode 82 = KP_Subtract
keycode 83 = KP_4
keycode 84 = KP_5
keycode 85 = KP_6
keycode 86 = KP_Add
keycode 87 = KP_1
keycode 88 = KP_2
keycode 89 = KP_3
keycode 90 = KP_0
keycode 92 = Sys_Req
keycode 94 = less greater bar
keycode 95 = F11 F11
keycode 96 = F12 F12
keycode 107 = Delete
keycode 108 = KP_Enter
keycode 109 = Control_R
keycode 112 = KP_Divide
keycode 113 = Mode_switch
keycode 114 = Break
keycode 110 = Find
keycode 98 = Up
keycode 99 = Prior
keycode 100 = Left
keycode 102 = Right
keycode 104 = Down
keycode 105 = Next
keycode 106 = Insert
! right windows-logo key
! in "windows" keyboards the position of the key is annoying, is where AltGr
! usually resides, so go define it as AltGr
keycode 116 = Mode_switch
! right windows-menu key
keycode 117 = Multi_key
add Mod1 = Alt_L
add Mod2 = Mode_switch
clear Mod1
clear Mod2
keycode 9 = Escape
keycode 10 = 1 exclam asciitilde
keycode 11 = 2 quotedbl caron
keycode 12 = 3 numbersign asciicircum
keycode 13 = 4 dollar breve
keycode 14 = 5 percent degree
keycode 15 = 6 ampersand ogonek
keycode 16 = 7 slash grave
keycode 17 = 8 parenleft abovedot
keycode 18 = 9 parenright acute
keycode 19 = 0 equal doubleacute
keycode 20 = apostrophe question diaeresis
keycode 21 = plus asterisk cedilla
keycode 22 = Delete Delete
keycode 23 = Tab Tab
keycode 24 = q Q backslash
keycode 25 = w W bar
keycode 26 = e
keycode 27 = r
keycode 28 = t
keycode 29 = z
keycode 30 = u
keycode 31 = i
keycode 32 = o
keycode 33 = p
keycode 34 = scaron Scaron division
keycode 35 = dstroke Dstroke multiply
keycode 36 = Return
keycode 37 = Control_L
keycode 38 = a
keycode 39 = s
keycode 40 = d
keycode 41 = f F bracketleft
keycode 42 = g G bracketright
keycode 43 = h
keycode 44 = j
keycode 45 = k K lstroke
keycode 46 = l L Lstroke
keycode 47 = ccaron Ccaron
keycode 48 = cacute Cacute ssharp
keycode 49 = cedilla diaeresis
keycode 50 = Shift_L
keycode 51 = zcaron Zcaron currency
keycode 52 = y
keycode 53 = x
keycode 54 = c
keycode 55 = v V at
keycode 56 = b B braceleft
keycode 57 = n N braceright
keycode 58 = m M section
keycode 59 = comma semicolon
keycode 60 = period colon
keycode 61 = minus underscore
keycode 62 = Shift_R
keycode 63 = KP_Multiply
keycode 64 = Alt_L Meta_L
keycode 65 = space space
keycode 66 = Caps_Lock
keycode 67 = F1 F11
keycode 68 = F2 F12
keycode 69 = F3 F13
keycode 70 = F4 F14
keycode 71 = F5 F15
keycode 72 = F6 F16
keycode 73 = F7 F17
keycode 74 = F8 F18
keycode 75 = F9 F19
keycode 76 = F10 F20
keycode 77 = Num_Lock
keycode 78 = Scroll_Lock
keycode 79 = KP_7
keycode 80 = KP_8
keycode 81 = KP_9
keycode 82 = KP_Subtract
keycode 83 = KP_4
keycode 84 = KP_5
keycode 85 = KP_6
keycode 86 = KP_Add
keycode 87 = KP_1
keycode 88 = KP_2
keycode 89 = KP_3
keycode 90 = KP_0
keycode 91 = KP_Decimal
keycode 92 = X386Sys_Req
keycode 94 = less greater
keycode 95 = F11 F1
keycode 96 = F12 F12
keycode 108 = KP_Enter
keycode 109 = Control_R
keycode 112 = KP_Divide
keycode 113 = Mode_switch
keycode 114 = Break
keycode 110 = Find
keycode 98 = Up
keycode 99 = Prior
keycode 100 = Left
keycode 102 = Right
keycode 104 = Down
keycode 105 = Next
keycode 106 = Insert
add Mod1 = Alt_L
add Mod2 = Mode_switch
clear Mod1
clear Mod2
keycode 9 = Escape Escape
keycode 10 = exclam 1
keycode 11 = quotedbl 2 at
keycode 12 = slash 3 numbersign
keycode 13 = semicolon 4 dollar
keycode 14 = colon 5 percent
keycode 15 = comma 6 asciicircum
keycode 16 = period 7 ampersand
keycode 17 = question 8 asterisk
keycode 18 = parenleft 9
keycode 19 = parenright 0
keycode 20 = underscore minus minus underscore
keycode 21 = plus equal equal plus
keycode 22 = BackSpace
keycode 23 = Tab Tab
keycode 24 = aogonek Aogonek q Q
keycode 25 = zcaron Zcaron w W
keycode 26 = e E currency
keycode 27 = r
keycode 28 = t
keycode 29 = y
keycode 30 = u
keycode 31 = i
keycode 32 = o
keycode 33 = p
keycode 34 = iogonek Iogonek bracketleft braceleft
keycode 35 = leftdoublequotemark doublelowquotemark bracketright braceright
keycode 36 = Return
keycode 37 = Control_L
keycode 38 = a
keycode 39 = s
keycode 40 = d
keycode 41 = f
keycode 42 = g
keycode 43 = h
keycode 44 = j
keycode 45 = k
keycode 46 = l
keycode 47 = uogonek Uogonek semicolon colon
keycode 48 = eabovedot Eabovedot apostrophe quotedbl
keycode 49 = grave asciitilde
keycode 50 = Shift_L
keycode 51 = backslash bar
keycode 52 = z
keycode 53 = umacron Umacron x X
keycode 54 = c
keycode 55 = v
keycode 56 = b
keycode 57 = n
keycode 58 = m
keycode 59 = ccaron Ccaron comma less
keycode 60 = scaron Scaron period greater
keycode 61 = eogonek Eogonek slash question
keycode 62 = Shift_R
keycode 63 = KP_Multiply
keycode 64 = Alt_L Meta_L
keycode 65 = space space
keycode 66 = Caps_Lock
keycode 67 = F1 F11
keycode 68 = F2 F12
keycode 69 = F3 F13
keycode 70 = F4 F14
keycode 71 = F5 F15
keycode 72 = F6 F16
keycode 73 = F7 F17
keycode 74 = F8 F18
keycode 75 = F9 F19
keycode 76 = F10 F20
keycode 77 = Num_Lock
keycode 78 = Scroll_Lock
keycode 79 = KP_7
keycode 80 = KP_8
keycode 81 = KP_9
keycode 82 = KP_Subtract
keycode 83 = KP_4
keycode 84 = KP_5
keycode 85 = KP_6
keycode 86 = KP_Add
keycode 87 = KP_1
keycode 88 = KP_2
keycode 89 = KP_3
keycode 90 = KP_0
keycode 94 = less greater bar
keycode 95 = F11 F11
keycode 96 = F12 F12
keycode 108 = KP_Enter
keycode 109 = Control_R
keycode 112 = KP_Divide
keycode 113 = Mode_switch
keycode 114 = Break
keycode 110 = Find
keycode 98 = Up
keycode 99 = Prior
keycode 100 = Left
keycode 102 = Right
keycode 115 = Select
keycode 104 = Down
keycode 105 = Next
keycode 106 = Insert
! right windows-logo key
! in "windows" keyboards the position of the key is annoying, is where AltGr
! usually resides, so go define it as AltGr
keycode 116 = Mode_switch
! right windows-menu key, redefined as Compose key
keycode 117 = Multi_key
add Mod1 = Alt_L
add Mod2 = Mode_switch
! The "& 7" key generates 7, ampersand, and section
! The "E" key generates e, E, eogonek, and Eogonek
! The "O" key generates o, O, oacute, and Oacute
! The "A" key generates a, A, aogonek, and Aogonek
! The "S" key generates s, S, sacute, and Sacute
! The "L" key generates l, L, lstroke, and Lstroke
! The "Z" key generates z, Z, zabovedot, and Zabovedot
! The "X" key generates x, X, zacute, and Zacute
! The "C" key generates c, C, cacute, and Cacute
! The "N" key generates n, N, nacute, and Nacute
! The "AltGr" key generates Mode_switch
keycode 0x09 = Escape
keycode 0x43 = F1
keycode 0x44 = F2
keycode 0x45 = F3
keycode 0x46 = F4
keycode 0x47 = F5
keycode 0x48 = F6
keycode 0x49 = F7
keycode 0x4A = F8
keycode 0x4B = F9
keycode 0x4C = F10
keycode 0x5F = F11
keycode 0x60 = F12
keycode 0x6F = Print
keycode 0x4E = Multi_key
keycode 0x6E = Pause
keycode 0x31 = grave asciitilde
keycode 0x0A = 1 exclam
keycode 0x0B = 2 at
keycode 0x0C = 3 numbersign
keycode 0x0D = 4 dollar
keycode 0x0E = 5 percent
keycode 0x0F = 6 asciicircum
keycode 0x10 = 7 ampersand section
keycode 0x11 = 8 asterisk
keycode 0x12 = 9 parenleft
keycode 0x13 = 0 parenright
keycode 0x14 = minus underscore
keycode 0x15 = equal plus
keycode 0x33 = backslash bar
keycode 0x16 = BackSpace
keycode 0x6A = Insert
keycode 0x61 = Home
keycode 0x63 = Prior
keycode 0x4D = Num_Lock
keycode 0x70 = KP_Divide
keycode 0x3F = KP_Multiply
keycode 0x52 = KP_Subtract
keycode 0x17 = Tab
keycode 0x18 = Q
keycode 0x19 = W
keycode 0x1A = e E eogonek Eogonek
keycode 0x1B = R
keycode 0x1C = T
keycode 0x1D = Y
keycode 0x1E = U
keycode 0x1F = I
keycode 0x20 = o O oacute Oacute
keycode 0x21 = P
keycode 0x22 = bracketleft braceleft
keycode 0x23 = bracketright braceright
keycode 0x24 = Return
keycode 0x6B = Delete
keycode 0x67 = End
keycode 0x69 = Next
keycode 0x4F = KP_7
keycode 0x50 = KP_8
keycode 0x51 = KP_9
keycode 0x56 = KP_Add
keycode 0x42 = Caps_Lock
keycode 0x26 = a A aogonek Aogonek
keycode 0x27 = s S sacute Sacute
keycode 0x28 = D
keycode 0x29 = F
keycode 0x2A = G
keycode 0x2B = H
keycode 0x2C = J
keycode 0x2D = K
keycode 0x2E = l L lstroke Lstroke
keycode 0x2F = semicolon colon
keycode 0x30 = apostrophe quotedbl
keycode 0x53 = KP_4
keycode 0x54 = KP_5
keycode 0x55 = KP_6
keycode 0x32 = Shift_L
keycode 0x34 = z Z zabovedot Zabovedot
keycode 0x35 = x X zacute Zacute
keycode 0x36 = c C cacute Cacute
keycode 0x37 = V
keycode 0x38 = B
keycode 0x39 = n N nacute Nacute
keycode 0x3A = M
keycode 0x3B = comma less
keycode 0x3C = period greater Multi_key
keycode 0x3D = slash question
keycode 0x3E = Shift_R
keycode 0x62 = Up
keycode 0x57 = KP_1
keycode 0x58 = KP_2
keycode 0x59 = KP_3
keycode 0x6C = KP_Enter
keycode 0x25 = Control_L
keycode 0x40 = Alt_L Meta_L
keycode 0x41 = space
keycode 0x71 = Mode_switch
keycode 0x6D = Control_R
keycode 0x64 = Left
keycode 0x68 = Down
keycode 0x66 = Right
keycode 0x5A = KP_0
keycode 0x5B = KP_Decimal
! right windows-logo key
! in "windows" keyboards the position of the key is annoying, is where AltGr
! usually resides, so go define it as AltGr
keycode 116 = Mode_switch
! right windows-menu key keycode 117 = Multi_key
clear Shift
clear Lock
clear Control
clear Mod1
clear Mod2
clear Mod3
clear Mod4
clear Mod5
add Shift = Shift_L Shift_R
add Lock = Caps_Lock
add Control = Control_L Control_R
add Mod1 = Alt_L
!Mode_switch add Mod2 = Mode_switch