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