Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | # Default kernel keymap. This uses 7 modifier combinations. |
| 2 | keymaps 0-2,4-5,8,12 |
| 3 | # Change the above line into |
| 4 | # keymaps 0-2,4-6,8,12 |
| 5 | # in case you want the entries |
| 6 | # altgr control keycode 83 = Boot |
| 7 | # altgr control keycode 111 = Boot |
| 8 | # below. |
| 9 | # |
| 10 | # In fact AltGr is used very little, and one more keymap can |
| 11 | # be saved by mapping AltGr to Alt (and adapting a few entries): |
| 12 | # keycode 100 = Alt |
| 13 | # |
| 14 | keycode 1 = grave asciitilde |
| 15 | alt keycode 1 = Meta_Escape |
| 16 | keycode 2 = one exclam |
| 17 | alt keycode 2 = Meta_one |
| 18 | keycode 3 = two at at |
| 19 | control keycode 3 = nul |
| 20 | shift control keycode 3 = nul |
| 21 | alt keycode 3 = Meta_two |
| 22 | keycode 4 = three numbersign |
| 23 | control keycode 4 = Escape |
| 24 | alt keycode 4 = Meta_three |
| 25 | keycode 5 = four dollar dollar |
| 26 | control keycode 5 = Control_backslash |
| 27 | alt keycode 5 = Meta_four |
| 28 | keycode 6 = five percent |
| 29 | control keycode 6 = Control_bracketright |
| 30 | alt keycode 6 = Meta_five |
| 31 | keycode 7 = six asciicircum |
| 32 | control keycode 7 = Control_asciicircum |
| 33 | alt keycode 7 = Meta_six |
| 34 | keycode 8 = seven ampersand braceleft |
| 35 | control keycode 8 = Control_underscore |
| 36 | alt keycode 8 = Meta_seven |
| 37 | keycode 9 = eight asterisk bracketleft |
| 38 | control keycode 9 = Delete |
| 39 | alt keycode 9 = Meta_eight |
| 40 | keycode 10 = nine parenleft bracketright |
| 41 | alt keycode 10 = Meta_nine |
| 42 | keycode 11 = zero parenright braceright |
| 43 | alt keycode 11 = Meta_zero |
| 44 | keycode 12 = minus underscore backslash |
| 45 | control keycode 12 = Control_underscore |
| 46 | shift control keycode 12 = Control_underscore |
| 47 | alt keycode 12 = Meta_minus |
| 48 | keycode 13 = equal plus |
| 49 | alt keycode 13 = Meta_equal |
| 50 | keycode 15 = Delete Delete |
| 51 | control keycode 15 = BackSpace |
| 52 | alt keycode 15 = Meta_Delete |
| 53 | keycode 16 = Tab Tab |
| 54 | alt keycode 16 = Meta_Tab |
| 55 | keycode 17 = q |
| 56 | keycode 18 = w |
| 57 | keycode 19 = e |
| 58 | keycode 20 = r |
| 59 | keycode 21 = t |
| 60 | keycode 22 = y |
| 61 | keycode 23 = u |
| 62 | keycode 24 = i |
| 63 | keycode 25 = o |
| 64 | keycode 26 = p |
| 65 | keycode 27 = bracketleft braceleft |
| 66 | control keycode 27 = Escape |
| 67 | alt keycode 27 = Meta_bracketleft |
| 68 | keycode 28 = bracketright braceright |
| 69 | control keycode 28 = Control_bracketright |
| 70 | alt keycode 28 = Meta_bracketright |
| 71 | keycode 29 = backslash bar |
| 72 | control keycode 29 = Control_backslash |
| 73 | alt keycode 29 = Meta_backslash |
| 74 | keycode 30 = Caps_Lock |
| 75 | keycode 31 = a |
| 76 | keycode 32 = s |
| 77 | keycode 33 = d |
| 78 | keycode 34 = f |
| 79 | keycode 35 = g |
| 80 | keycode 36 = h |
| 81 | keycode 37 = j |
| 82 | keycode 38 = k |
| 83 | keycode 39 = l |
| 84 | keycode 40 = semicolon colon |
| 85 | alt keycode 39 = Meta_semicolon |
| 86 | keycode 41 = apostrophe quotedbl |
| 87 | control keycode 40 = Control_g |
| 88 | alt keycode 40 = Meta_apostrophe |
| 89 | keycode 42 = grave asciitilde |
| 90 | control keycode 41 = nul |
| 91 | alt keycode 41 = Meta_grave |
| 92 | keycode 43 = Return |
| 93 | alt keycode 43 = Meta_Control_m |
| 94 | keycode 44 = Shift |
| 95 | keycode 46 = z |
| 96 | keycode 47 = x |
| 97 | keycode 48 = c |
| 98 | keycode 49 = v |
| 99 | keycode 50 = b |
| 100 | keycode 51 = n |
| 101 | keycode 52 = m |
| 102 | keycode 53 = comma less |
| 103 | alt keycode 51 = Meta_comma |
| 104 | keycode 54 = period greater |
| 105 | control keycode 52 = Compose |
| 106 | alt keycode 52 = Meta_period |
| 107 | keycode 55 = slash question |
| 108 | control keycode 53 = Delete |
| 109 | alt keycode 53 = Meta_slash |
| 110 | keycode 57 = Shift |
| 111 | keycode 58 = Control |
| 112 | keycode 60 = Alt |
| 113 | keycode 61 = space space |
| 114 | control keycode 61 = nul |
| 115 | alt keycode 61 = Meta_space |
| 116 | keycode 62 = Alt |
| 117 | |
| 118 | keycode 75 = Insert |
| 119 | keycode 76 = Delete |
| 120 | |
| 121 | keycode 83 = Up |
| 122 | keycode 84 = Down |
| 123 | |
| 124 | keycode 85 = Prior |
| 125 | shift keycode 85 = Scroll_Backward |
| 126 | keycode 86 = Next |
| 127 | shift keycode 86 = Scroll_Forward |
| 128 | keycode 89 = Right |
| 129 | alt keycode 89 = Incr_Console |
| 130 | keycode 79 = Left |
| 131 | alt keycode 79 = Decr_Console |
| 132 | |
| 133 | keycode 90 = Num_Lock |
| 134 | shift keycode 90 = Bare_Num_Lock |
| 135 | |
| 136 | keycode 91 = minus |
| 137 | keycode 92 = plus |
| 138 | keycode 93 = KP_Multiply |
| 139 | keycode 94 = period |
| 140 | keycode 95 = KP_Divide |
| 141 | |
| 142 | keycode 107 = Select |
| 143 | keycode 108 = Down |
| 144 | |
| 145 | keycode 110 = Escape Escape |
| 146 | alt keycode 1 = Meta_Escape |
| 147 | |
| 148 | keycode 112 = F1 F11 Console_13 |
| 149 | control keycode 112 = F1 |
| 150 | alt keycode 112 = Console_1 |
| 151 | control alt keycode 112 = Console_1 |
| 152 | keycode 113 = F2 F12 Console_14 |
| 153 | control keycode 113 = F2 |
| 154 | alt keycode 113 = Console_2 |
| 155 | control alt keycode 113 = Console_2 |
| 156 | keycode 114 = F3 F13 Console_15 |
| 157 | control keycode 114 = F3 |
| 158 | alt keycode 114 = Console_3 |
| 159 | control alt keycode 114 = Console_3 |
| 160 | keycode 115 = F4 F14 Console_16 |
| 161 | control keycode 115 = F4 |
| 162 | alt keycode 115 = Console_4 |
| 163 | control alt keycode 115 = Console_4 |
| 164 | keycode 116 = F5 F15 Console_17 |
| 165 | control keycode 116 = F5 |
| 166 | alt keycode 116 = Console_5 |
| 167 | control alt keycode 116 = Console_5 |
| 168 | keycode 117 = F6 F16 Console_18 |
| 169 | control keycode 117 = F6 |
| 170 | alt keycode 117 = Console_6 |
| 171 | control alt keycode 117 = Console_6 |
| 172 | keycode 118 = F7 F17 Console_19 |
| 173 | control keycode 118 = F7 |
| 174 | alt keycode 118 = Console_7 |
| 175 | control alt keycode 118 = Console_7 |
| 176 | keycode 119 = F8 F18 Console_20 |
| 177 | control keycode 119 = F8 |
| 178 | alt keycode 119 = Console_8 |
| 179 | control alt keycode 119 = Console_8 |
| 180 | keycode 120 = F9 F19 Console_21 |
| 181 | control keycode 120 = F9 |
| 182 | alt keycode 120 = Console_9 |
| 183 | control alt keycode 120 = Console_9 |
| 184 | keycode 121 = F10 F20 Console_22 |
| 185 | control keycode 121 = F10 |
| 186 | alt keycode 121 = Console_10 |
| 187 | control alt keycode 121 = Console_10 |
| 188 | |
| 189 | keycode 126 = Pause |
| 190 | |
| 191 | |
| 192 | string F1 = "\033[[A" |
| 193 | string F2 = "\033[[B" |
| 194 | string F3 = "\033[[C" |
| 195 | string F4 = "\033[[D" |
| 196 | string F5 = "\033[[E" |
| 197 | string F6 = "\033[17~" |
| 198 | string F7 = "\033[18~" |
| 199 | string F8 = "\033[19~" |
| 200 | string F9 = "\033[20~" |
| 201 | string F10 = "\033[21~" |
| 202 | string F11 = "\033[23~" |
| 203 | string F12 = "\033[24~" |
| 204 | string F13 = "\033[25~" |
| 205 | string F14 = "\033[26~" |
| 206 | string F15 = "\033[28~" |
| 207 | string F16 = "\033[29~" |
| 208 | string F17 = "\033[31~" |
| 209 | string F18 = "\033[32~" |
| 210 | string F19 = "\033[33~" |
| 211 | string F20 = "\033[34~" |
| 212 | string Find = "\033[1~" |
| 213 | string Insert = "\033[2~" |
| 214 | string Remove = "\033[3~" |
| 215 | string Select = "\033[4~" |
| 216 | string Prior = "\033[5~" |
| 217 | string Next = "\033[6~" |
| 218 | string Macro = "\033[M" |
| 219 | string Pause = "\033[P" |
| 220 | compose '`' 'A' to 'À' |
| 221 | compose '`' 'a' to 'à' |
| 222 | compose '\'' 'A' to 'Á' |
| 223 | compose '\'' 'a' to 'á' |
| 224 | compose '^' 'A' to 'Â' |
| 225 | compose '^' 'a' to 'â' |
| 226 | compose '~' 'A' to 'Ã' |
| 227 | compose '~' 'a' to 'ã' |
| 228 | compose '"' 'A' to 'Ä' |
| 229 | compose '"' 'a' to 'ä' |
| 230 | compose 'O' 'A' to 'Å' |
| 231 | compose 'o' 'a' to 'å' |
| 232 | compose '0' 'A' to 'Å' |
| 233 | compose '0' 'a' to 'å' |
| 234 | compose 'A' 'A' to 'Å' |
| 235 | compose 'a' 'a' to 'å' |
| 236 | compose 'A' 'E' to 'Æ' |
| 237 | compose 'a' 'e' to 'æ' |
| 238 | compose ',' 'C' to 'Ç' |
| 239 | compose ',' 'c' to 'ç' |
| 240 | compose '`' 'E' to 'È' |
| 241 | compose '`' 'e' to 'è' |
| 242 | compose '\'' 'E' to 'É' |
| 243 | compose '\'' 'e' to 'é' |
| 244 | compose '^' 'E' to 'Ê' |
| 245 | compose '^' 'e' to 'ê' |
| 246 | compose '"' 'E' to 'Ë' |
| 247 | compose '"' 'e' to 'ë' |
| 248 | compose '`' 'I' to 'Ì' |
| 249 | compose '`' 'i' to 'ì' |
| 250 | compose '\'' 'I' to 'Í' |
| 251 | compose '\'' 'i' to 'í' |
| 252 | compose '^' 'I' to 'Î' |
| 253 | compose '^' 'i' to 'î' |
| 254 | compose '"' 'I' to 'Ï' |
| 255 | compose '"' 'i' to 'ï' |
| 256 | compose '-' 'D' to 'Ð' |
| 257 | compose '-' 'd' to 'ð' |
| 258 | compose '~' 'N' to 'Ñ' |
| 259 | compose '~' 'n' to 'ñ' |
| 260 | compose '`' 'O' to 'Ò' |
| 261 | compose '`' 'o' to 'ò' |
| 262 | compose '\'' 'O' to 'Ó' |
| 263 | compose '\'' 'o' to 'ó' |
| 264 | compose '^' 'O' to 'Ô' |
| 265 | compose '^' 'o' to 'ô' |
| 266 | compose '~' 'O' to 'Õ' |
| 267 | compose '~' 'o' to 'õ' |
| 268 | compose '"' 'O' to 'Ö' |
| 269 | compose '"' 'o' to 'ö' |
| 270 | compose '/' 'O' to 'Ø' |
| 271 | compose '/' 'o' to 'ø' |
| 272 | compose '`' 'U' to 'Ù' |
| 273 | compose '`' 'u' to 'ù' |
| 274 | compose '\'' 'U' to 'Ú' |
| 275 | compose '\'' 'u' to 'ú' |
| 276 | compose '^' 'U' to 'Û' |
| 277 | compose '^' 'u' to 'û' |
| 278 | compose '"' 'U' to 'Ü' |
| 279 | compose '"' 'u' to 'ü' |
| 280 | compose '\'' 'Y' to 'Ý' |
| 281 | compose '\'' 'y' to 'ý' |
| 282 | compose 'T' 'H' to 'Þ' |
| 283 | compose 't' 'h' to 'þ' |
| 284 | compose 's' 's' to 'ß' |
| 285 | compose '"' 'y' to 'ÿ' |
| 286 | compose 's' 'z' to 'ß' |
| 287 | compose 'i' 'j' to 'ÿ' |