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 0x15 = grave tilde
15 alt keycode 0x15 = Escape
16 control keycode 0x15 = Meta_Escape
17 keycode 0x16 = one exclam
18 alt keycode 0x16 = Meta_one
19 keycode 0x17 = two at at
20 control keycode 0x17 = nul
21 shift control keycode 0x17 = nul
22 alt keycode 0x17 = Meta_two
23 keycode 0x18 = three numbersign
24 control keycode 0x18 = Escape
25 alt keycode 0x18 = Meta_three
26 keycode 0x19 = four dollar dollar
27 control keycode 0x19 = Control_backslash
28 alt keycode 0x19 = Meta_four
29 keycode 0x1a = five percent
30 control keycode 0x1a = Control_bracketright
31 alt keycode 0x1a = Meta_five
32 keycode 0x1b = six asciicircum
33 control keycode 0x1b = Control_asciicircum
34 alt keycode 0x1b = Meta_six
35 keycode 0x1c = seven ampersand braceleft
36 control keycode 0x1c = Control_underscore
37 alt keycode 0x1c = Meta_seven
38 keycode 0x1d = eight asterisk bracketleft
39 control keycode 0x1d = Delete
40 alt keycode 0x1d = Meta_eight
41 keycode 0x1e = nine parenleft bracketright
42 alt keycode 0x1e = Meta_nine
43 keycode 0x1f = zero parenright braceright
44 alt keycode 0x1f = Meta_zero
45 keycode 0x20 = minus underscore backslash
46 control keycode 0x20 = Control_underscore
47 shift control keycode 0x20 = Control_underscore
48 alt keycode 0x20 = Meta_minus
49 keycode 0x21 = equal plus
50 alt keycode 0x21 = Meta_equal
51 keycode 0x22 = Delete Delete
52 control keycode 0x22 = BackSpace
53 alt keycode 0x22 = Meta_Delete
54 keycode 0x2a = Tab Tab
55 alt keycode 0x2a = Meta_Tab
59 altgr keycode 0x2d = Hex_E
67 keycode 0x35 = bracketleft braceleft
68 control keycode 0x35 = Escape
69 alt keycode 0x35 = Meta_bracketleft
70 keycode 0x36 = bracketright braceright asciitilde
71 control keycode 0x36 = Control_bracketright
72 alt keycode 0x36 = Meta_bracketright
74 alt keycode 0x37 = Meta_Control_m
75 keycode 0x3f = Control
77 altgr keycode 0x41 = Hex_A
80 altgr keycode 0x43 = Hex_D
82 altgr keycode 0x44 = Hex_F
88 keycode 0x4a = semicolon colon
89 alt keycode 0x4a = Meta_semicolon
90 keycode 0x4b = apostrophe quotedbl
91 control keycode 0x4b = Control_g
92 alt keycode 0x4b = Meta_apostrophe
93 # keycode 41 = grave asciitilde
94 # control keycode 41 = nul
95 # alt keycode 41 = Meta_grave
97 keycode 0x4c = backslash bar
98 control keycode 0x4c = Control_backslash
99 alt keycode 0x4c = Meta_backslash
100 keycode 0x53 = greater less
104 altgr keycode 0x56 = Hex_C
107 altgr keycode 0x58 = Hex_B
110 keycode 0x5b = comma less
111 alt keycode 0x5b = Meta_comma
112 keycode 0x5c = period greater
113 control keycode 0x5c = Compose
114 alt keycode 0x5c = Meta_period
115 keycode 0x5d = slash question
116 control keycode 0x5d = Delete
117 alt keycode 0x5d = Meta_slash
120 keycode 0x68 = space space
121 control keycode 0x68 = nul
122 alt keycode 0x68 = Meta_space
123 keycode 0x40 = Caps_Lock
125 control keycode 0x01 = F1
126 alt keycode 0x01 = Console_1
127 control alt keycode 0x01 = Console_1
129 control keycode 0x02 = F2
130 alt keycode 0x02 = Console_2
131 control alt keycode 0x02 = Console_2
133 control keycode 0x03 = F3
134 alt keycode 0x03 = Console_3
135 control alt keycode 0x03 = Console_3
137 control keycode 0x04 = F4
138 alt keycode 0x04 = Console_4
139 control alt keycode 0x04 = Console_4
141 control keycode 0x05 = F5
142 alt keycode 0x05 = Console_5
143 control alt keycode 0x05 = Console_5
145 control keycode 0x06 = F6
146 alt keycode 0x06 = Console_6
147 control alt keycode 0x06 = Console_6
149 control keycode 0x07 = F7
150 alt keycode 0x07 = Console_7
151 control alt keycode 0x07 = Console_7
153 control keycode 0x08 = F8
154 alt keycode 0x08 = Console_8
155 control alt keycode 0x08 = Console_8
157 control keycode 0x09 = F9
158 alt keycode 0x09 = Console_9
159 control alt keycode 0x09 = Console_9
161 control keycode 0x0a = F10
162 alt keycode 0x0a = Console_10
163 control alt keycode 0x0a = Console_10
165 control keycode 0x0b = F11
166 alt keycode 0x0b = Console_11
167 control alt keycode 0x0b = Console_11
169 control keycode 0x0c = F12
170 alt keycode 0x0c = Console_12
171 control alt keycode 0x0c = Console_12
173 control keycode 0x0d = F13
174 alt keycode 0x0d = Console_13
175 control alt keycode 0x0d = Console_13
177 control keycode 0x0e = F14
178 alt keycode 0x0e = Console_14
179 control alt keycode 0x0e = Console_14
182 control keycode 0x11 = F17
183 alt keycode 0x11 = Console_17
184 control alt keycode 0x11 = Console_17
186 control keycode 0x12 = F18
187 alt keycode 0x12 = Console_18
188 control alt keycode 0x12 = Console_18
190 control keycode 0x13 = F19
191 alt keycode 0x13 = Console_19
192 control alt keycode 0x13 = Console_19
194 control keycode 0x14 = F20
195 alt keycode 0x14 = Console_20
196 control alt keycode 0x14 = Console_20
200 alt keycode 0x3b = Ascii_7
201 altgr keycode 0x3b = Hex_7
203 alt keycode 0x3c = Ascii_8
204 altgr keycode 0x3c = Hex_8
206 alt keycode 0x3d = Ascii_9
207 altgr keycode 0x3d = Hex_9
208 keycode 0x3e = KP_Subtract
210 alt keycode 0x4e = Ascii_4
211 altgr keycode 0x4e = Hex_4
213 alt keycode 0x4f = Ascii_5
214 altgr keycode 0x4f = Hex_5
216 alt keycode 0x50 = Ascii_6
217 altgr keycode 0x50 = Hex_6
219 alt keycode 0x62 = Ascii_1
220 altgr keycode 0x62 = Hex_1
222 alt keycode 0x63 = Ascii_2
223 altgr keycode 0x63 = Hex_2
225 alt keycode 0x64 = Ascii_3
226 altgr keycode 0x64 = Hex_3
228 alt keycode 0x6b = Ascii_0
229 altgr keycode 0x6b = Hex_0
230 keycode 0x6c = KP_Period
231 # altgr control keycode 0x6c = Boot
232 control alt keycode 0x6c = Boot
233 keycode 0x65 = KP_Enter
235 keycode 0x3f = Control
237 # keycode 100 = AltGr
242 shift keycode 0x39 = Scroll_Backward
244 alt keycode 0x5f = Decr_Console
246 alt keycode 0x61 = Incr_Console
247 keycode 0x38 = Select
250 shift keycode 0x3a = Scroll_Forward
251 keycode 0x24 = Insert
252 keycode 0x25 = Remove
253 # altgr control keycode 0x25 = Boot
254 control alt keycode 0x25 = Boot
256 keycode 0x0f = Help Show_Memory Show_Registers
257 control keycode 0x0f = Show_State
261 string F1 = "\033[[A"
262 string F2 = "\033[[B"
263 string F3 = "\033[[C"
264 string F4 = "\033[[D"
265 string F5 = "\033[[E"
266 string F6 = "\033[17~"
267 string F7 = "\033[18~"
268 string F8 = "\033[19~"
269 string F9 = "\033[20~"
270 string F10 = "\033[21~"
271 string F11 = "\033[23~"
272 string F12 = "\033[24~"
273 string F13 = "\033[25~"
274 string F14 = "\033[26~"
275 string F15 = "\033[28~"
276 string F16 = "\033[29~"
277 string F17 = "\033[31~"
278 string F18 = "\033[32~"
279 string F19 = "\033[33~"
280 string F20 = "\033[34~"
281 string Find = "\033[1~"
282 string Insert = "\033[2~"
283 string Remove = "\033[3~"
284 string Select = "\033[4~"
285 string Prior = "\033[5~"
286 string Next = "\033[6~"
287 string Macro = "\033[M"
288 string Pause = "\033[P"
289 compose '`' 'A' to 'À'
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 'O' 'A' to 'Å'
300 compose 'o' 'a' to 'å'
301 compose '0' 'A' to 'Å'
302 compose '0' 'a' to 'å'
303 compose 'A' 'A' to 'Å'
304 compose 'a' 'a' to 'å'
305 compose 'A' 'E' to 'Æ'
306 compose 'a' 'e' to 'æ'
307 compose ',' 'C' to 'Ç'
308 compose ',' 'c' to 'ç'
309 compose '`' 'E' 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 '`' 'I' 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 '-' 'D' to 'Ð'
326 compose '-' 'd' to 'ð'
327 compose '~' 'N' to 'Ñ'
328 compose '~' 'n' to 'ñ'
329 compose '`' 'O' 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 '`' 'U' 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 '\'' 'Y' to 'Ý'
350 compose '\'' 'y' to 'ý'
351 compose 'T' 'H' to 'Þ'
352 compose 't' 'h' to 'þ'
353 compose 's' 's' to 'ß'
354 compose '"' 'y' to 'ÿ'
355 compose 's' 'z' to 'ß'
356 compose 'i' 'j' to 'ÿ'