1# SPDX-License-Identifier: GPL-2.0
2# Default kernel keymap. This uses 7 modifier combinations.
3keymaps 0-2,4-5,8,12
4# Change the above line into
5#	keymaps 0-2,4-6,8,12
6# in case you want the entries
7#	altgr   control keycode  83 = Boot
8#	altgr   control keycode 111 = Boot
9# below.
10#
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):
13# keycode 100 = Alt
14#
15keycode   1 = Escape           Escape
16	alt     keycode   1 = Meta_Escape
17keycode   2 = one              exclam
18	alt     keycode   2 = Meta_one
19keycode   3 = two              at               at
20	control	keycode   3 = nul
21	shift	control	keycode   3 = nul
22	alt	keycode   3 = Meta_two
23keycode   4 = three            numbersign
24	control keycode   4 = Escape
25	alt     keycode   4 = Meta_three
26keycode   5 = four             dollar           dollar
27	control keycode   5 = Control_backslash
28	alt     keycode   5 = Meta_four
29keycode   6 = five             percent
30	control keycode   6 = Control_bracketright
31	alt     keycode   6 = Meta_five
32keycode   7 = six              asciicircum
33	control keycode   7 = Control_asciicircum
34	alt     keycode   7 = Meta_six
35keycode   8 = seven            ampersand        braceleft
36	control keycode   8 = Control_underscore
37	alt     keycode   8 = Meta_seven
38keycode   9 = eight            asterisk         bracketleft
39	control keycode   9 = Delete
40	alt     keycode   9 = Meta_eight
41keycode  10 = nine             parenleft        bracketright
42	alt     keycode  10 = Meta_nine
43keycode  11 = zero             parenright       braceright
44	alt     keycode  11 = Meta_zero
45keycode  12 = minus            underscore       backslash
46	control	keycode  12 = Control_underscore
47	shift	control	keycode  12 = Control_underscore
48	alt	keycode  12 = Meta_minus
49keycode  13 = equal            plus
50	alt     keycode  13 = Meta_equal
51keycode  14 = Delete           Delete
52	control keycode  14 = BackSpace
53	alt     keycode  14 = Meta_Delete
54keycode  15 = Tab              Tab
55	alt     keycode  15 = Meta_Tab
56keycode  16 = q
57keycode  17 = w
58keycode  18 = e
59	altgr   keycode  18 = Hex_E
60keycode  19 = r
61keycode  20 = t
62keycode  21 = y
63keycode  22 = u
64keycode  23 = i
65keycode  24 = o
66keycode  25 = p
67keycode  26 = bracketleft      braceleft
68	control keycode  26 = Escape
69	alt     keycode  26 = Meta_bracketleft
70keycode  27 = bracketright     braceright       asciitilde
71	control keycode  27 = Control_bracketright
72	alt     keycode  27 = Meta_bracketright
73keycode  28 = Return
74	alt     keycode  28 = Meta_Control_m
75keycode  29 = Control
76keycode  30 = a
77	altgr   keycode  30 = Hex_A
78keycode  31 = s
79keycode  32 = d
80	altgr   keycode  32 = Hex_D
81keycode  33 = f
82	altgr   keycode  33 = Hex_F
83keycode  34 = g
84keycode  35 = h
85keycode  36 = j
86keycode  37 = k
87keycode  38 = l
88keycode  39 = semicolon        colon
89	alt     keycode  39 = Meta_semicolon
90keycode  40 = apostrophe       quotedbl
91	control keycode  40 = Control_g
92	alt     keycode  40 = Meta_apostrophe
93keycode  41 = grave            asciitilde
94	control keycode  41 = nul
95	alt     keycode  41 = Meta_grave
96keycode  42 = Shift
97keycode  43 = backslash        bar
98	control keycode  43 = Control_backslash
99	alt     keycode  43 = Meta_backslash
100keycode  44 = z
101keycode  45 = x
102keycode  46 = c
103	altgr   keycode  46 = Hex_C
104keycode  47 = v
105keycode  48 = b
106	altgr   keycode  48 = Hex_B
107keycode  49 = n
108keycode  50 = m
109keycode  51 = comma            less
110	alt     keycode  51 = Meta_comma
111keycode  52 = period           greater
112	control keycode  52 = Compose
113	alt     keycode  52 = Meta_period
114keycode  53 = slash            question
115	control keycode  53 = Delete
116	alt     keycode  53 = Meta_slash
117keycode  54 = Shift
118keycode  55 = KP_Multiply
119keycode  56 = Alt
120keycode  57 = space            space
121	control keycode  57 = nul
122	alt     keycode  57 = Meta_space
123keycode  58 = Caps_Lock
124keycode  59 = F1               F11              Console_13
125	control keycode  59 = F1
126	alt     keycode  59 = Console_1
127	control alt     keycode  59 = Console_1
128keycode  60 = F2               F12              Console_14
129	control keycode  60 = F2
130	alt     keycode  60 = Console_2
131	control alt     keycode  60 = Console_2
132keycode  61 = F3               F13              Console_15
133	control keycode  61 = F3
134	alt     keycode  61 = Console_3
135	control alt     keycode  61 = Console_3
136keycode  62 = F4               F14              Console_16
137	control keycode  62 = F4
138	alt     keycode  62 = Console_4
139	control alt     keycode  62 = Console_4
140keycode  63 = F5               F15              Console_17
141	control keycode  63 = F5
142	alt     keycode  63 = Console_5
143	control alt     keycode  63 = Console_5
144keycode  64 = F6               F16              Console_18
145	control keycode  64 = F6
146	alt     keycode  64 = Console_6
147	control alt     keycode  64 = Console_6
148keycode  65 = F7               F17              Console_19
149	control keycode  65 = F7
150	alt     keycode  65 = Console_7
151	control alt     keycode  65 = Console_7
152keycode  66 = F8               F18              Console_20
153	control keycode  66 = F8
154	alt     keycode  66 = Console_8
155	control alt     keycode  66 = Console_8
156keycode  67 = F9               F19              Console_21
157	control keycode  67 = F9
158	alt     keycode  67 = Console_9
159	control alt     keycode  67 = Console_9
160keycode  68 = F10              F20              Console_22
161	control keycode  68 = F10
162	alt     keycode  68 = Console_10
163	control alt     keycode  68 = Console_10
164keycode  69 = Num_Lock
165	shift   keycode  69 = Bare_Num_Lock
166keycode  70 = Scroll_Lock      Show_Memory      Show_Registers
167	control keycode  70 = Show_State
168	alt     keycode  70 = Scroll_Lock
169keycode  71 = KP_7
170	alt     keycode  71 = Ascii_7
171	altgr   keycode  71 = Hex_7
172keycode  72 = KP_8
173	alt     keycode  72 = Ascii_8
174	altgr   keycode  72 = Hex_8
175keycode  73 = KP_9
176	alt     keycode  73 = Ascii_9
177	altgr   keycode  73 = Hex_9
178keycode  74 = KP_Subtract
179keycode  75 = KP_4
180	alt     keycode  75 = Ascii_4
181	altgr   keycode  75 = Hex_4
182keycode  76 = KP_5
183	alt     keycode  76 = Ascii_5
184	altgr   keycode  76 = Hex_5
185keycode  77 = KP_6
186	alt     keycode  77 = Ascii_6
187	altgr   keycode  77 = Hex_6
188keycode  78 = KP_Add
189keycode  79 = KP_1
190	alt     keycode  79 = Ascii_1
191	altgr   keycode  79 = Hex_1
192keycode  80 = KP_2
193	alt     keycode  80 = Ascii_2
194	altgr   keycode  80 = Hex_2
195keycode  81 = KP_3
196	alt     keycode  81 = Ascii_3
197	altgr   keycode  81 = Hex_3
198keycode  82 = KP_0
199	alt     keycode  82 = Ascii_0
200	altgr   keycode  82 = Hex_0
201keycode  83 = KP_Period
202#	altgr   control keycode  83 = Boot
203	control alt     keycode  83 = Boot
204keycode  84 = Last_Console
205keycode  85 =
206keycode  86 = less             greater          bar
207	alt     keycode  86 = Meta_less
208keycode  87 = F11              F11              Console_23
209	control keycode  87 = F11
210	alt     keycode  87 = Console_11
211	control alt     keycode  87 = Console_11
212keycode  88 = F12              F12              Console_24
213	control keycode  88 = F12
214	alt     keycode  88 = Console_12
215	control alt     keycode  88 = Console_12
216keycode  89 =
217keycode  90 =
218keycode  91 =
219keycode  92 =
220keycode  93 =
221keycode  94 =
222keycode  95 =
223keycode  96 = KP_Enter
224keycode  97 = Control
225keycode  98 = KP_Divide
226keycode  99 = Control_backslash
227	control keycode  99 = Control_backslash
228	alt     keycode  99 = Control_backslash
229keycode 100 = AltGr
230keycode 101 = Break
231keycode 102 = Find
232keycode 103 = Up
233keycode 104 = Prior
234	shift   keycode 104 = Scroll_Backward
235keycode 105 = Left
236	alt     keycode 105 = Decr_Console
237keycode 106 = Right
238	alt     keycode 106 = Incr_Console
239keycode 107 = Select
240keycode 108 = Down
241keycode 109 = Next
242	shift   keycode 109 = Scroll_Forward
243keycode 110 = Insert
244keycode 111 = Remove
245#	altgr   control keycode 111 = Boot
246	control alt     keycode 111 = Boot
247keycode 112 = Macro
248keycode 113 = F13
249keycode 114 = F14
250keycode 115 = Help
251keycode 116 = Do
252keycode 117 = F17
253keycode 118 = KP_MinPlus
254keycode 119 = Pause
255keycode 120 =
256keycode 121 =
257keycode 122 =
258keycode 123 =
259keycode 124 =
260keycode 125 =
261keycode 126 =
262keycode 127 =
263string F1 = "\033[[A"
264string F2 = "\033[[B"
265string F3 = "\033[[C"
266string F4 = "\033[[D"
267string F5 = "\033[[E"
268string F6 = "\033[17~"
269string F7 = "\033[18~"
270string F8 = "\033[19~"
271string F9 = "\033[20~"
272string F10 = "\033[21~"
273string F11 = "\033[23~"
274string F12 = "\033[24~"
275string F13 = "\033[25~"
276string F14 = "\033[26~"
277string F15 = "\033[28~"
278string F16 = "\033[29~"
279string F17 = "\033[31~"
280string F18 = "\033[32~"
281string F19 = "\033[33~"
282string F20 = "\033[34~"
283string Find = "\033[1~"
284string Insert = "\033[2~"
285string Remove = "\033[3~"
286string Select = "\033[4~"
287string Prior = "\033[5~"
288string Next = "\033[6~"
289string Macro = "\033[M"
290string Pause = "\033[P"
291compose '`' 'A' to '�'
292compose '`' 'a' to '�'
293compose '\'' 'A' to '�'
294compose '\'' 'a' to '�'
295compose '^' 'A' to '�'
296compose '^' 'a' to '�'
297compose '~' 'A' to '�'
298compose '~' 'a' to '�'
299compose '"' 'A' to '�'
300compose '"' 'a' to '�'
301compose 'O' 'A' to '�'
302compose 'o' 'a' to '�'
303compose '0' 'A' to '�'
304compose '0' 'a' to '�'
305compose 'A' 'A' to '�'
306compose 'a' 'a' to '�'
307compose 'A' 'E' to '�'
308compose 'a' 'e' to '�'
309compose ',' 'C' to '�'
310compose ',' 'c' to '�'
311compose '`' 'E' to '�'
312compose '`' 'e' to '�'
313compose '\'' 'E' to '�'
314compose '\'' 'e' to '�'
315compose '^' 'E' to '�'
316compose '^' 'e' to '�'
317compose '"' 'E' to '�'
318compose '"' 'e' to '�'
319compose '`' 'I' to '�'
320compose '`' 'i' to '�'
321compose '\'' 'I' to '�'
322compose '\'' 'i' to '�'
323compose '^' 'I' to '�'
324compose '^' 'i' to '�'
325compose '"' 'I' to '�'
326compose '"' 'i' to '�'
327compose '-' 'D' to '�'
328compose '-' 'd' to '�'
329compose '~' 'N' to '�'
330compose '~' 'n' to '�'
331compose '`' 'O' to '�'
332compose '`' 'o' to '�'
333compose '\'' 'O' to '�'
334compose '\'' 'o' to '�'
335compose '^' 'O' to '�'
336compose '^' 'o' to '�'
337compose '~' 'O' to '�'
338compose '~' 'o' to '�'
339compose '"' 'O' to '�'
340compose '"' 'o' to '�'
341compose '/' 'O' to '�'
342compose '/' 'o' to '�'
343compose '`' 'U' to '�'
344compose '`' 'u' to '�'
345compose '\'' 'U' to '�'
346compose '\'' 'u' to '�'
347compose '^' 'U' to '�'
348compose '^' 'u' to '�'
349compose '"' 'U' to '�'
350compose '"' 'u' to '�'
351compose '\'' 'Y' to '�'
352compose '\'' 'y' to '�'
353compose 'T' 'H' to '�'
354compose 't' 'h' to '�'
355compose 's' 's' to '�'
356compose '"' 'y' to '�'
357compose 's' 'z' to '�'
358compose 'i' 'j' to '�'
359