1 # Default kernel keymap. This uses 7 modifier combinations.
3 # Change the above line into
5 # in case you want the entries
6 # altgr control keycode 83 = Boot
7 # altgr control keycode 111 = Boot
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):
14 keycode 1 = Escape Escape
15 alt keycode 1 = Meta_Escape
16 keycode 2 = one exclam
17 alt keycode 2 = Meta_one
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 14 = Delete Delete
51 control keycode 14 = BackSpace
52 alt keycode 14 = Meta_Delete
54 alt keycode 15 = Meta_Tab
58 altgr keycode 18 = Hex_E
66 keycode 26 = bracketleft braceleft
67 control keycode 26 = Escape
68 alt keycode 26 = Meta_bracketleft
69 keycode 27 = bracketright braceright asciitilde
70 control keycode 27 = Control_bracketright
71 alt keycode 27 = Meta_bracketright
73 alt keycode 28 = Meta_Control_m
76 altgr keycode 30 = Hex_A
79 altgr keycode 32 = Hex_D
81 altgr keycode 33 = Hex_F
87 keycode 39 = semicolon colon
88 alt keycode 39 = Meta_semicolon
89 keycode 40 = apostrophe quotedbl
90 control keycode 40 = Control_g
91 alt keycode 40 = Meta_apostrophe
92 keycode 41 = grave asciitilde
93 control keycode 41 = nul
94 alt keycode 41 = Meta_grave
96 keycode 43 = backslash bar
97 control keycode 43 = Control_backslash
98 alt keycode 43 = Meta_backslash
102 altgr keycode 46 = Hex_C
105 altgr keycode 48 = Hex_B
108 keycode 51 = comma less
109 alt keycode 51 = Meta_comma
110 keycode 52 = period greater
111 control keycode 52 = Compose
112 alt keycode 52 = Meta_period
113 keycode 53 = slash question
114 control keycode 53 = Delete
115 alt keycode 53 = Meta_slash
117 keycode 55 = KP_Multiply
119 keycode 57 = space space
120 control keycode 57 = nul
121 alt keycode 57 = Meta_space
122 keycode 58 = Caps_Lock
123 keycode 59 = F1 F11 Console_13
124 control keycode 59 = F1
125 alt keycode 59 = Console_1
126 control alt keycode 59 = Console_1
127 keycode 60 = F2 F12 Console_14
128 control keycode 60 = F2
129 alt keycode 60 = Console_2
130 control alt keycode 60 = Console_2
131 keycode 61 = F3 F13 Console_15
132 control keycode 61 = F3
133 alt keycode 61 = Console_3
134 control alt keycode 61 = Console_3
135 keycode 62 = F4 F14 Console_16
136 control keycode 62 = F4
137 alt keycode 62 = Console_4
138 control alt keycode 62 = Console_4
139 keycode 63 = F5 F15 Console_17
140 control keycode 63 = F5
141 alt keycode 63 = Console_5
142 control alt keycode 63 = Console_5
143 keycode 64 = F6 F16 Console_18
144 control keycode 64 = F6
145 alt keycode 64 = Console_6
146 control alt keycode 64 = Console_6
147 keycode 65 = F7 F17 Console_19
148 control keycode 65 = F7
149 alt keycode 65 = Console_7
150 control alt keycode 65 = Console_7
151 keycode 66 = F8 F18 Console_20
152 control keycode 66 = F8
153 alt keycode 66 = Console_8
154 control alt keycode 66 = Console_8
155 keycode 67 = F9 F19 Console_21
156 control keycode 67 = F9
157 alt keycode 67 = Console_9
158 control alt keycode 67 = Console_9
159 keycode 68 = F10 F20 Console_22
160 control keycode 68 = F10
161 alt keycode 68 = Console_10
162 control alt keycode 68 = Console_10
163 keycode 69 = Num_Lock
164 shift keycode 69 = Bare_Num_Lock
165 keycode 70 = Scroll_Lock Show_Memory Show_Registers
166 control keycode 70 = Show_State
167 alt keycode 70 = Scroll_Lock
169 alt keycode 71 = Ascii_7
170 altgr keycode 71 = Hex_7
172 alt keycode 72 = Ascii_8
173 altgr keycode 72 = Hex_8
175 alt keycode 73 = Ascii_9
176 altgr keycode 73 = Hex_9
177 keycode 74 = KP_Subtract
179 alt keycode 75 = Ascii_4
180 altgr keycode 75 = Hex_4
182 alt keycode 76 = Ascii_5
183 altgr keycode 76 = Hex_5
185 alt keycode 77 = Ascii_6
186 altgr keycode 77 = Hex_6
189 alt keycode 79 = Ascii_1
190 altgr keycode 79 = Hex_1
192 alt keycode 80 = Ascii_2
193 altgr keycode 80 = Hex_2
195 alt keycode 81 = Ascii_3
196 altgr keycode 81 = Hex_3
198 alt keycode 82 = Ascii_0
199 altgr keycode 82 = Hex_0
200 keycode 83 = KP_Period
201 # altgr control keycode 83 = Boot
202 control alt keycode 83 = Boot
203 keycode 84 = Last_Console
205 keycode 86 = less greater bar
206 alt keycode 86 = Meta_less
207 keycode 87 = F11 F11 Console_23
208 control keycode 87 = F11
209 alt keycode 87 = Console_11
210 control alt keycode 87 = Console_11
211 keycode 88 = F12 F12 Console_24
212 control keycode 88 = F12
213 alt keycode 88 = Console_12
214 control alt keycode 88 = Console_12
222 keycode 96 = KP_Enter
224 keycode 98 = KP_Divide
225 keycode 99 = Control_backslash
226 control keycode 99 = Control_backslash
227 alt keycode 99 = Control_backslash
233 shift keycode 104 = Scroll_Backward
235 alt keycode 105 = Decr_Console
237 alt keycode 106 = Incr_Console
241 shift keycode 109 = Scroll_Forward
244 # altgr control keycode 111 = Boot
245 control alt keycode 111 = Boot
252 keycode 118 = KP_MinPlus
262 string F1 = "\033[[A"
263 string F2 = "\033[[B"
264 string F3 = "\033[[C"
265 string F4 = "\033[[D"
266 string F5 = "\033[[E"
267 string F6 = "\033[17~"
268 string F7 = "\033[18~"
269 string F8 = "\033[19~"
270 string F9 = "\033[20~"
271 string F10 = "\033[21~"
272 string F11 = "\033[23~"
273 string F12 = "\033[24~"
274 string F13 = "\033[25~"
275 string F14 = "\033[26~"
276 string F15 = "\033[28~"
277 string F16 = "\033[29~"
278 string F17 = "\033[31~"
279 string F18 = "\033[32~"
280 string F19 = "\033[33~"
281 string F20 = "\033[34~"
282 string Find = "\033[1~"
283 string Insert = "\033[2~"
284 string Remove = "\033[3~"
285 string Select = "\033[4~"
286 string Prior = "\033[5~"
287 string Next = "\033[6~"
288 string Macro = "\033[M"
289 string Pause = "\033[P"
290 compose '`' 'A' to 'À'
291 compose '`' 'a' to 'à'
292 compose '\'' 'A' to 'Á'
293 compose '\'' 'a' to 'á'
294 compose '^' 'A' to 'Â'
295 compose '^' 'a' to 'â'
296 compose '~' 'A' to 'Ã'
297 compose '~' 'a' to 'ã'
298 compose '"' 'A' to 'Ä'
299 compose '"' 'a' to 'ä'
300 compose 'O' 'A' to 'Å'
301 compose 'o' 'a' to 'å'
302 compose '0' 'A' to 'Å'
303 compose '0' 'a' to 'å'
304 compose 'A' 'A' to 'Å'
305 compose 'a' 'a' to 'å'
306 compose 'A' 'E' to 'Æ'
307 compose 'a' 'e' to 'æ'
308 compose ',' 'C' to 'Ç'
309 compose ',' 'c' to 'ç'
310 compose '`' 'E' to 'È'
311 compose '`' 'e' to 'è'
312 compose '\'' 'E' to 'É'
313 compose '\'' 'e' to 'é'
314 compose '^' 'E' to 'Ê'
315 compose '^' 'e' to 'ê'
316 compose '"' 'E' to 'Ë'
317 compose '"' 'e' to 'ë'
318 compose '`' 'I' to 'Ì'
319 compose '`' 'i' to 'ì'
320 compose '\'' 'I' to 'Í'
321 compose '\'' 'i' to 'í'
322 compose '^' 'I' to 'Î'
323 compose '^' 'i' to 'î'
324 compose '"' 'I' to 'Ï'
325 compose '"' 'i' to 'ï'
326 compose '-' 'D' to 'Ð'
327 compose '-' 'd' to 'ð'
328 compose '~' 'N' to 'Ñ'
329 compose '~' 'n' to 'ñ'
330 compose '`' 'O' to 'Ò'
331 compose '`' 'o' to 'ò'
332 compose '\'' 'O' to 'Ó'
333 compose '\'' 'o' to 'ó'
334 compose '^' 'O' to 'Ô'
335 compose '^' 'o' to 'ô'
336 compose '~' 'O' to 'Õ'
337 compose '~' 'o' to 'õ'
338 compose '"' 'O' to 'Ö'
339 compose '"' 'o' to 'ö'
340 compose '/' 'O' to 'Ø'
341 compose '/' 'o' to 'ø'
342 compose '`' 'U' to 'Ù'
343 compose '`' 'u' to 'ù'
344 compose '\'' 'U' to 'Ú'
345 compose '\'' 'u' to 'ú'
346 compose '^' 'U' to 'Û'
347 compose '^' 'u' to 'û'
348 compose '"' 'U' to 'Ü'
349 compose '"' 'u' to 'ü'
350 compose '\'' 'Y' to 'Ý'
351 compose '\'' 'y' to 'ý'
352 compose 'T' 'H' to 'Þ'
353 compose 't' 'h' to 'þ'
354 compose 's' 's' to 'ß'
355 compose '"' 'y' to 'ÿ'
356 compose 's' 'z' to 'ß'
357 compose 'i' 'j' to 'ÿ'