1 # SPDX-License-Identifier: GPL-2.0
2 # Default kernel keymap. This uses 7 modifier combinations.
4 # Change the above line into
6 # in case you want the entries
7 # altgr control keycode 83 = Boot
8 # altgr control keycode 111 = Boot
11 # In fact AltGr is used very little, and one more keymap can
12 # be saved by mapping AltGr to Alt (and adapting a few entries):
15 keycode 1 = Escape Escape
16 alt keycode 1 = Meta_Escape
17 keycode 2 = one exclam
18 alt keycode 2 = Meta_one
20 control keycode 3 = nul
21 shift control keycode 3 = nul
22 alt keycode 3 = Meta_two
23 keycode 4 = three numbersign
24 control keycode 4 = Escape
25 alt keycode 4 = Meta_three
26 keycode 5 = four dollar dollar
27 control keycode 5 = Control_backslash
28 alt keycode 5 = Meta_four
29 keycode 6 = five percent
30 control keycode 6 = Control_bracketright
31 alt keycode 6 = Meta_five
32 keycode 7 = six asciicircum
33 control keycode 7 = Control_asciicircum
34 alt keycode 7 = Meta_six
35 keycode 8 = seven ampersand braceleft
36 control keycode 8 = Control_underscore
37 alt keycode 8 = Meta_seven
38 keycode 9 = eight asterisk bracketleft
39 control keycode 9 = Delete
40 alt keycode 9 = Meta_eight
41 keycode 10 = nine parenleft bracketright
42 alt keycode 10 = Meta_nine
43 keycode 11 = zero parenright braceright
44 alt keycode 11 = Meta_zero
45 keycode 12 = minus underscore backslash
46 control keycode 12 = Control_underscore
47 shift control keycode 12 = Control_underscore
48 alt keycode 12 = Meta_minus
49 keycode 13 = equal plus
50 alt keycode 13 = Meta_equal
51 keycode 14 = Delete Delete
52 control keycode 14 = BackSpace
53 alt keycode 14 = Meta_Delete
55 alt keycode 15 = Meta_Tab
59 altgr keycode 18 = Hex_E
67 keycode 26 = bracketleft braceleft
68 control keycode 26 = Escape
69 alt keycode 26 = Meta_bracketleft
70 keycode 27 = bracketright braceright asciitilde
71 control keycode 27 = Control_bracketright
72 alt keycode 27 = Meta_bracketright
74 alt keycode 28 = Meta_Control_m
77 altgr keycode 30 = Hex_A
80 altgr keycode 32 = Hex_D
82 altgr keycode 33 = Hex_F
88 keycode 39 = semicolon colon
89 alt keycode 39 = Meta_semicolon
90 keycode 40 = apostrophe quotedbl
91 control keycode 40 = Control_g
92 alt keycode 40 = Meta_apostrophe
93 keycode 41 = grave asciitilde
94 control keycode 41 = nul
95 alt keycode 41 = Meta_grave
97 keycode 43 = backslash bar
98 control keycode 43 = Control_backslash
99 alt keycode 43 = Meta_backslash
103 altgr keycode 46 = Hex_C
106 altgr keycode 48 = Hex_B
109 keycode 51 = comma less
110 alt keycode 51 = Meta_comma
111 keycode 52 = period greater
112 control keycode 52 = Compose
113 alt keycode 52 = Meta_period
114 keycode 53 = slash question
115 control keycode 53 = Delete
116 alt keycode 53 = Meta_slash
118 keycode 55 = KP_Multiply
120 keycode 57 = space space
121 control keycode 57 = nul
122 alt keycode 57 = Meta_space
123 keycode 58 = Caps_Lock
124 keycode 59 = F1 F11 Console_13
125 control keycode 59 = F1
126 alt keycode 59 = Console_1
127 control alt keycode 59 = Console_1
128 keycode 60 = F2 F12 Console_14
129 control keycode 60 = F2
130 alt keycode 60 = Console_2
131 control alt keycode 60 = Console_2
132 keycode 61 = F3 F13 Console_15
133 control keycode 61 = F3
134 alt keycode 61 = Console_3
135 control alt keycode 61 = Console_3
136 keycode 62 = F4 F14 Console_16
137 control keycode 62 = F4
138 alt keycode 62 = Console_4
139 control alt keycode 62 = Console_4
140 keycode 63 = F5 F15 Console_17
141 control keycode 63 = F5
142 alt keycode 63 = Console_5
143 control alt keycode 63 = Console_5
144 keycode 64 = F6 F16 Console_18
145 control keycode 64 = F6
146 alt keycode 64 = Console_6
147 control alt keycode 64 = Console_6
148 keycode 65 = F7 F17 Console_19
149 control keycode 65 = F7
150 alt keycode 65 = Console_7
151 control alt keycode 65 = Console_7
152 keycode 66 = F8 F18 Console_20
153 control keycode 66 = F8
154 alt keycode 66 = Console_8
155 control alt keycode 66 = Console_8
156 keycode 67 = F9 F19 Console_21
157 control keycode 67 = F9
158 alt keycode 67 = Console_9
159 control alt keycode 67 = Console_9
160 keycode 68 = F10 F20 Console_22
161 control keycode 68 = F10
162 alt keycode 68 = Console_10
163 control alt keycode 68 = Console_10
164 keycode 69 = Num_Lock
165 shift keycode 69 = Bare_Num_Lock
166 keycode 70 = Scroll_Lock Show_Memory Show_Registers
167 control keycode 70 = Show_State
168 alt keycode 70 = Scroll_Lock
170 alt keycode 71 = Ascii_7
171 altgr keycode 71 = Hex_7
173 alt keycode 72 = Ascii_8
174 altgr keycode 72 = Hex_8
176 alt keycode 73 = Ascii_9
177 altgr keycode 73 = Hex_9
178 keycode 74 = KP_Subtract
180 alt keycode 75 = Ascii_4
181 altgr keycode 75 = Hex_4
183 alt keycode 76 = Ascii_5
184 altgr keycode 76 = Hex_5
186 alt keycode 77 = Ascii_6
187 altgr keycode 77 = Hex_6
190 alt keycode 79 = Ascii_1
191 altgr keycode 79 = Hex_1
193 alt keycode 80 = Ascii_2
194 altgr keycode 80 = Hex_2
196 alt keycode 81 = Ascii_3
197 altgr keycode 81 = Hex_3
199 alt keycode 82 = Ascii_0
200 altgr keycode 82 = Hex_0
201 keycode 83 = KP_Period
202 # altgr control keycode 83 = Boot
203 control alt keycode 83 = Boot
204 keycode 84 = Last_Console
206 keycode 86 = less greater bar
207 alt keycode 86 = Meta_less
208 keycode 87 = F11 F11 Console_23
209 control keycode 87 = F11
210 alt keycode 87 = Console_11
211 control alt keycode 87 = Console_11
212 keycode 88 = F12 F12 Console_24
213 control keycode 88 = F12
214 alt keycode 88 = Console_12
215 control alt keycode 88 = Console_12
223 keycode 96 = KP_Enter
225 keycode 98 = KP_Divide
226 keycode 99 = Control_backslash
227 control keycode 99 = Control_backslash
228 alt keycode 99 = Control_backslash
234 shift keycode 104 = Scroll_Backward
236 alt keycode 105 = Decr_Console
238 alt keycode 106 = Incr_Console
242 shift keycode 109 = Scroll_Forward
245 # altgr control keycode 111 = Boot
246 control alt keycode 111 = Boot
253 keycode 118 = KP_MinPlus
263 string F1 = "\033[[A"
264 string F2 = "\033[[B"
265 string F3 = "\033[[C"
266 string F4 = "\033[[D"
267 string F5 = "\033[[E"
268 string F6 = "\033[17~"
269 string F7 = "\033[18~"
270 string F8 = "\033[19~"
271 string F9 = "\033[20~"
272 string F10 = "\033[21~"
273 string F11 = "\033[23~"
274 string F12 = "\033[24~"
275 string F13 = "\033[25~"
276 string F14 = "\033[26~"
277 string F15 = "\033[28~"
278 string F16 = "\033[29~"
279 string F17 = "\033[31~"
280 string F18 = "\033[32~"
281 string F19 = "\033[33~"
282 string F20 = "\033[34~"
283 string Find = "\033[1~"
284 string Insert = "\033[2~"
285 string Remove = "\033[3~"
286 string Select = "\033[4~"
287 string Prior = "\033[5~"
288 string Next = "\033[6~"
289 string Macro = "\033[M"
290 string Pause = "\033[P"
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 '"' 'a' to 'ä'
301 compose 'O' 'A' to 'Å'
302 compose 'o' 'a' to 'å'
303 compose '0' 'A' to 'Å'
304 compose '0' 'a' to 'å'
305 compose 'A' 'A' to 'Å'
306 compose 'a' 'a' to 'å'
307 compose 'A' 'E' to 'Æ'
308 compose 'a' 'e' to 'æ'
309 compose ',' 'C' to 'Ç'
310 compose ',' 'c' 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 '"' 'e' 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 '"' 'i' to 'ï'
327 compose '-' 'D' to 'Ð'
328 compose '-' 'd' to 'ð'
329 compose '~' 'N' to 'Ñ'
330 compose '~' 'n' 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 '/' 'o' 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 '"' 'u' to 'ü'
351 compose '\'' 'Y' to 'Ý'
352 compose '\'' 'y' to 'ý'
353 compose 'T' 'H' to 'Þ'
354 compose 't' 'h' to 'þ'
355 compose 's' 's' to 'ß'
356 compose '"' 'y' to 'ÿ'
357 compose 's' 'z' to 'ß'
358 compose 'i' 'j' to 'ÿ'