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   0x15 = grave		tilde
15	alt     keycode   0x15 = Escape
16	control keycode   0x15 = Meta_Escape
17keycode   0x16 = one              exclam
18	alt     keycode   0x16 = Meta_one
19keycode   0x17 = two              at               at
20	control	keycode   0x17 = nul
21	shift	control	keycode   0x17 = nul
22	alt	keycode   0x17 = Meta_two
23keycode   0x18 = three            numbersign
24	control keycode   0x18 = Escape
25	alt     keycode   0x18 = Meta_three
26keycode   0x19 = four             dollar           dollar
27	control keycode   0x19 = Control_backslash
28	alt     keycode   0x19 = Meta_four
29keycode   0x1a = five             percent
30	control keycode   0x1a = Control_bracketright
31	alt     keycode   0x1a = Meta_five
32keycode   0x1b = six              asciicircum
33	control keycode   0x1b = Control_asciicircum
34	alt     keycode   0x1b = Meta_six
35keycode   0x1c = seven            ampersand        braceleft
36	control keycode   0x1c = Control_underscore
37	alt     keycode   0x1c = Meta_seven
38keycode   0x1d = eight            asterisk         bracketleft
39	control keycode   0x1d = Delete
40	alt     keycode   0x1d = Meta_eight
41keycode  0x1e = nine             parenleft        bracketright
42	alt     keycode  0x1e = Meta_nine
43keycode  0x1f = zero             parenright       braceright
44	alt     keycode  0x1f = Meta_zero
45keycode  0x20 = minus            underscore       backslash
46	control	keycode  0x20 = Control_underscore
47	shift	control	keycode  0x20 = Control_underscore
48	alt	keycode  0x20 = Meta_minus
49keycode  0x21 = equal            plus
50	alt     keycode  0x21 = Meta_equal
51keycode  0x22 = Delete           Delete
52	control keycode  0x22 = BackSpace
53	alt     keycode  0x22 = Meta_Delete
54keycode  0x2a = Tab              Tab
55	alt     keycode  0x2a = Meta_Tab
56keycode  0x2b = q
57keycode  0x2c = w
58keycode  0x2d = e
59	altgr   keycode  0x2d = Hex_E
60keycode  0x2e = r
61keycode  0x2f = t
62keycode  0x30 = y
63keycode  0x31 = u
64keycode  0x32 = i
65keycode  0x33 = o
66keycode  0x34 = p
67keycode  0x35 = bracketleft      braceleft
68	control keycode  0x35 = Escape
69	alt     keycode  0x35 = Meta_bracketleft
70keycode  0x36 = bracketright     braceright       asciitilde
71	control keycode  0x36 = Control_bracketright
72	alt     keycode  0x36 = Meta_bracketright
73keycode  0x37 = Return
74	alt     keycode  0x37 = Meta_Control_m
75keycode  0x3f = Control
76keycode  0x41 = a
77	altgr   keycode  0x41 = Hex_A
78keycode  0x42 = s
79keycode  0x43 = d
80	altgr   keycode  0x43 = Hex_D
81keycode  0x44 = f
82	altgr   keycode  0x44 = Hex_F
83keycode  0x45 = g
84keycode  0x46 = h
85keycode  0x47 = j
86keycode  0x48 = k
87keycode  0x49 = l
88keycode  0x4a = semicolon        colon
89	alt     keycode  0x4a = Meta_semicolon
90keycode  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
96keycode  0x52 = Shift
97keycode  0x4c = backslash        bar
98	control keycode  0x4c = Control_backslash
99	alt     keycode  0x4c = Meta_backslash
100keycode  0x53 = greater	less
101keycode  0x54 = z
102keycode  0x55 = x
103keycode  0x56 = c
104	altgr   keycode  0x56 = Hex_C
105keycode  0x57 = v
106keycode  0x58 = b
107	altgr   keycode  0x58 = Hex_B
108keycode  0x59 = n
109keycode  0x5a = m
110keycode  0x5b = comma            less
111	alt     keycode  0x5b = Meta_comma
112keycode  0x5c = period           greater
113	control keycode  0x5c = Compose
114	alt     keycode  0x5c = Meta_period
115keycode  0x5d = slash            question
116	control keycode  0x5d = Delete
117	alt     keycode  0x5d = Meta_slash
118
119keycode  0x67 = Alt
120keycode  0x68 = space            space
121	control keycode  0x68 = nul
122	alt     keycode  0x68 = Meta_space
123keycode  0x40 = Caps_Lock
124keycode  0x01 = F1
125	control keycode  0x01 = F1
126	alt     keycode  0x01 = Console_1
127	control alt     keycode  0x01 = Console_1
128keycode  0x02 = F2
129	control keycode  0x02 = F2
130	alt     keycode  0x02 = Console_2
131	control alt     keycode  0x02 = Console_2
132keycode  0x03 = F3
133	control keycode  0x03 = F3
134	alt     keycode  0x03 = Console_3
135	control alt     keycode  0x03 = Console_3
136keycode  0x04 = F4
137	control keycode  0x04 = F4
138	alt     keycode  0x04 = Console_4
139	control alt     keycode  0x04 = Console_4
140keycode  0x05 = F5
141	control keycode  0x05 = F5
142	alt     keycode  0x05 = Console_5
143	control alt     keycode  0x05 = Console_5
144keycode  0x06 = F6
145	control keycode  0x06 = F6
146	alt     keycode  0x06 = Console_6
147	control alt     keycode  0x06 = Console_6
148keycode  0x07 = F7
149	control keycode  0x07 = F7
150	alt     keycode  0x07 = Console_7
151	control alt     keycode  0x07 = Console_7
152keycode  0x08 = F8
153	control keycode  0x08 = F8
154	alt     keycode  0x08 = Console_8
155	control alt     keycode  0x08 = Console_8
156keycode  0x09 = F9
157	control keycode  0x09 = F9
158	alt     keycode  0x09 = Console_9
159	control alt     keycode  0x09 = Console_9
160keycode  0x0a = F10
161	control keycode  0x0a = F10
162	alt     keycode  0x0a = Console_10
163	control alt     keycode  0x0a = Console_10
164keycode  0x0b = F11
165	control keycode  0x0b = F11
166	alt     keycode  0x0b = Console_11
167	control alt     keycode  0x0b = Console_11
168keycode  0x0c = F12
169	control keycode  0x0c = F12
170	alt     keycode  0x0c = Console_12
171	control alt     keycode  0x0c = Console_12
172keycode  0x0d = F13
173	control keycode  0x0d = F13
174	alt     keycode  0x0d = Console_13
175	control alt     keycode  0x0d = Console_13
176keycode  0x0e = F14
177	control keycode  0x0e = F14
178	alt     keycode  0x0e = Console_14
179	control alt     keycode  0x0e = Console_14
180
181keycode  0x11 = F17
182	control keycode  0x11 = F17
183	alt     keycode  0x11 = Console_17
184	control alt     keycode  0x11 = Console_17
185keycode  0x12 = F18
186	control keycode  0x12 = F18
187	alt     keycode  0x12 = Console_18
188	control alt     keycode  0x12 = Console_18
189keycode  0x13 = F19
190	control keycode  0x13 = F19
191	alt     keycode  0x13 = Console_19
192	control alt     keycode  0x13 = Console_19
193keycode  0x14 = F20
194	control keycode  0x14 = F20
195	alt     keycode  0x14 = Console_20
196	control alt     keycode  0x14 = Console_20
197
198
199keycode  0x3b = KP_7
200	alt     keycode  0x3b = Ascii_7
201	altgr   keycode  0x3b = Hex_7
202keycode  0x3c = KP_8
203	alt     keycode  0x3c = Ascii_8
204	altgr   keycode  0x3c = Hex_8
205keycode  0x3d = KP_9
206	alt     keycode  0x3d = Ascii_9
207	altgr   keycode  0x3d = Hex_9
208keycode  0x3e = KP_Subtract
209keycode  0x4e = KP_4
210	alt     keycode  0x4e = Ascii_4
211	altgr   keycode  0x4e = Hex_4
212keycode  0x4f = KP_5
213	alt     keycode  0x4f = Ascii_5
214	altgr   keycode  0x4f = Hex_5
215keycode  0x50 = KP_6
216	alt     keycode  0x50 = Ascii_6
217	altgr   keycode  0x50 = Hex_6
218keycode  0x62 = KP_1
219	alt     keycode  0x62 = Ascii_1
220	altgr   keycode  0x62 = Hex_1
221keycode  0x63 = KP_2
222	alt     keycode  0x63 = Ascii_2
223	altgr   keycode  0x63 = Hex_2
224keycode  0x64 = KP_3
225	alt     keycode  0x64 = Ascii_3
226	altgr   keycode  0x64 = Hex_3
227keycode  0x6b = KP_0
228	alt     keycode  0x6b = Ascii_0
229	altgr   keycode  0x6b = Hex_0
230keycode  0x6c = KP_Period
231#	altgr   control keycode  0x6c = Boot
232	control alt     keycode  0x6c = Boot
233keycode  0x65 = KP_Enter
234
235keycode  0x3f = Control
236
237# keycode 100 = AltGr
238
239keycode 0x23 = Find
240keycode 0x4d = Up
241keycode 0x39 = Prior
242	shift   keycode 0x39 = Scroll_Backward
243keycode 0x5f = Left
244	alt     keycode 0x5f = Decr_Console
245keycode 0x61 = Right
246	alt     keycode 0x61 = Incr_Console
247keycode 0x38 = Select
248keycode 0x60 = Down
249keycode 0x3a = Next
250	shift   keycode 0x3a = Scroll_Forward
251keycode 0x24 = Insert
252keycode 0x25 = Remove
253#	altgr   control keycode 0x25 = Boot
254	control alt     keycode 0x25 = Boot
255
256keycode 0x0f = Help      Show_Memory      Show_Registers
257	control keycode  0x0f = Show_State
258
259keycode 0x10 = Do
260
261string F1 = "\033[[A"
262string F2 = "\033[[B"
263string F3 = "\033[[C"
264string F4 = "\033[[D"
265string F5 = "\033[[E"
266string F6 = "\033[17~"
267string F7 = "\033[18~"
268string F8 = "\033[19~"
269string F9 = "\033[20~"
270string F10 = "\033[21~"
271string F11 = "\033[23~"
272string F12 = "\033[24~"
273string F13 = "\033[25~"
274string F14 = "\033[26~"
275string F15 = "\033[28~"
276string F16 = "\033[29~"
277string F17 = "\033[31~"
278string F18 = "\033[32~"
279string F19 = "\033[33~"
280string F20 = "\033[34~"
281string Find = "\033[1~"
282string Insert = "\033[2~"
283string Remove = "\033[3~"
284string Select = "\033[4~"
285string Prior = "\033[5~"
286string Next = "\033[6~"
287string Macro = "\033[M"
288string Pause = "\033[P"
289compose '`' 'A' to '�'
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 'O' 'A' to '�'
300compose 'o' 'a' to '�'
301compose '0' 'A' to '�'
302compose '0' 'a' to '�'
303compose 'A' 'A' to '�'
304compose 'a' 'a' to '�'
305compose 'A' 'E' to '�'
306compose 'a' 'e' to '�'
307compose ',' 'C' to '�'
308compose ',' 'c' to '�'
309compose '`' 'E' to '�'
310compose '`' 'e' to '�'
311compose '\'' 'E' to '�'
312compose '\'' 'e' to '�'
313compose '^' 'E' to '�'
314compose '^' 'e' to '�'
315compose '"' 'E' to '�'
316compose '"' 'e' to '�'
317compose '`' 'I' to '�'
318compose '`' 'i' to '�'
319compose '\'' 'I' to '�'
320compose '\'' 'i' to '�'
321compose '^' 'I' to '�'
322compose '^' 'i' to '�'
323compose '"' 'I' to '�'
324compose '"' 'i' to '�'
325compose '-' 'D' to '�'
326compose '-' 'd' to '�'
327compose '~' 'N' to '�'
328compose '~' 'n' to '�'
329compose '`' 'O' 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 '`' 'U' to '�'
342compose '`' 'u' to '�'
343compose '\'' 'U' to '�'
344compose '\'' 'u' to '�'
345compose '^' 'U' to '�'
346compose '^' 'u' to '�'
347compose '"' 'U' to '�'
348compose '"' 'u' to '�'
349compose '\'' 'Y' to '�'
350compose '\'' 'y' to '�'
351compose 'T' 'H' to '�'
352compose 't' 'h' to '�'
353compose 's' 's' to '�'
354compose '"' 'y' to '�'
355compose 's' 'z' to '�'
356compose 'i' 'j' to '�'
357