Debian Codegraph @

data/keymaps/i386/neo/3l.map

raw
1 # 3L Keyboard Layout
2 # ==================
3 # 3L is a derivative of the Neo keyboard layout, designed for typing
4 # English text. For more information, visit:
5 # https://github.com/jackrosenthal/threelayout
6 #
7 # In this implementation, the Sym layer (Mod3 in Neo) is implemented under
8 # AltGr, and the Cur layer (Mod4 in Neo) is implemented under CtrlL.
9
10 #==========================================================================
11 # Prelude
12 #==========================================================================
13
14 keymaps 0-127
15 strings as usual
16 include "linux-keys-bare"
17
18 #==========================================================================
19 # Number Row
20 #==========================================================================
21
22 # KEY_1
23 keycode 2 = one
24
25 # KEY_2
26 keycode 3 = two
27
28 # KEY_3
29 keycode 4 = three
30
31 # KEY_4
32 keycode 5 = four
33
34 # KEY_5
35 keycode 6 = five
36
37 # KEY_6
38 keycode 7 = six
39
40 # KEY_7
41 keycode 8 = seven
42
43 # KEY_8
44 keycode 9 = eight
45
46 # KEY_9
47 keycode 10 = nine
48
49 # KEY_0
50 keycode 11 = zero
51
52 # KEY_BACKSPACE
53 keycode 14 = BackSpace
54
55 #==========================================================================
56 # Top Row
57 #==========================================================================
58
59 # KEY_TAB
60 keycode 15 = Escape
61
62 # KEY_Q
63 keycode 16 = q
64 altgr keycode 16 = quotedbl
65 alt altgr keycode 16 = Meta_quotedbl
66 alt altgr shift keycode 16 = Meta_quotedbl
67 ctrll keycode 16 = PageUp
68 ctrll altgr keycode 16 = quotedbl
69 ctrll alt keycode 16 = Meta_PageUp
70 ctrll alt altgr keycode 16 = Meta_quotedbl
71
72 # KEY_W
73 keycode 17 = f
74 altgr keycode 17 = underscore
75 alt altgr keycode 17 = Meta_underscore
76 alt altgr shift keycode 17 = Meta_underscore
77 ctrll keycode 17 = BackSpace
78 ctrll altgr keycode 17 = underscore
79 ctrll alt keycode 17 = Meta_BackSpace
80 ctrll alt altgr keycode 17 = Meta_underscore
81
82 # KEY_E
83 keycode 18 = u
84 altgr keycode 18 = bracketleft
85 alt altgr keycode 18 = Meta_bracketleft
86 alt altgr shift keycode 18 = Meta_bracketleft
87 ctrll keycode 18 = Up
88 ctrll altgr keycode 18 = bracketleft
89 ctrll alt keycode 18 = Meta_Up
90 ctrll alt altgr keycode 18 = Meta_bracketleft
91
92 # KEY_R
93 keycode 19 = y
94 altgr keycode 19 = bracketright
95 alt altgr keycode 19 = Meta_bracketright
96 alt altgr shift keycode 19 = Meta_bracketright
97 ctrll keycode 19 = Delete
98 ctrll altgr keycode 19 = bracketright
99 ctrll alt keycode 19 = Meta_Delete
100 ctrll alt altgr keycode 19 = Meta_bracketright
101
102 # KEY_T
103 keycode 20 = z
104 altgr keycode 20 = asciicircum
105 alt altgr keycode 20 = Meta_asciicircum
106 alt altgr shift keycode 20 = Meta_asciicircum
107 ctrll keycode 20 = PageDown
108 ctrll altgr keycode 20 = asciicircum
109 ctrll alt keycode 20 = Meta_PageDown
110 ctrll alt altgr keycode 20 = Meta_asciicircum
111
112 # KEY_Y
113 keycode 21 = x
114 altgr keycode 21 = exclam
115 alt altgr keycode 21 = Meta_exclam
116 alt altgr shift keycode 21 = Meta_exclam
117 ctrll keycode 21 = X
118 ctrll altgr keycode 21 = exclam
119 ctrll alt altgr keycode 21 = Meta_exclam
120
121 # KEY_U
122 keycode 22 = k
123 altgr keycode 22 = less
124 alt altgr keycode 22 = Meta_less
125 alt altgr shift keycode 22 = Meta_less
126 ctrll keycode 22 = one
127 ctrll altgr keycode 22 = less
128 ctrll alt keycode 22 = Meta_one
129 ctrll alt altgr keycode 22 = Meta_less
130
131 # KEY_I
132 keycode 23 = c
133 altgr keycode 23 = greater
134 alt altgr keycode 23 = Meta_greater
135 alt altgr shift keycode 23 = Meta_greater
136 ctrll keycode 23 = two
137 ctrll altgr keycode 23 = greater
138 ctrll alt keycode 23 = Meta_two
139 ctrll alt altgr keycode 23 = Meta_greater
140
141 # KEY_O
142 keycode 24 = w
143 altgr keycode 24 = equal
144 alt altgr keycode 24 = Meta_equal
145 alt altgr shift keycode 24 = Meta_equal
146 ctrll keycode 24 = three
147 ctrll altgr keycode 24 = equal
148 ctrll alt keycode 24 = Meta_three
149 ctrll alt altgr keycode 24 = Meta_equal
150
151 # KEY_P
152 keycode 25 = b
153 altgr keycode 25 = ampersand
154 alt altgr keycode 25 = Meta_ampersand
155 alt altgr shift keycode 25 = Meta_ampersand
156 ctrll keycode 25 = B
157 ctrll altgr keycode 25 = ampersand
158 ctrll alt altgr keycode 25 = Meta_ampersand
159
160 #==========================================================================
161 # Home Row
162 #==========================================================================
163
164 # KEY_CAPSLOCK
165 keycode 58 = Tab
166 alt keycode 58 = Meta_Tab
167 alt shift keycode 58 = Meta_Tab
168 alt altgr keycode 58 = Meta_Tab
169 alt altgr shift keycode 58 = Meta_Tab
170 alt control keycode 58 = Meta_Tab
171 alt control shift keycode 58 = Meta_Tab
172 ctrll alt keycode 58 = Meta_Tab
173 ctrll alt shift keycode 58 = Meta_Tab
174 ctrll alt altgr keycode 58 = Meta_Tab
175 ctrll alt control keycode 58 = Meta_Tab
176
177 # KEY_LEFTMETA
178 keycode 125 = Tab
179 alt keycode 125 = Meta_Tab
180 alt shift keycode 125 = Meta_Tab
181 alt altgr keycode 125 = Meta_Tab
182 alt altgr shift keycode 125 = Meta_Tab
183 alt control keycode 125 = Meta_Tab
184 alt control shift keycode 125 = Meta_Tab
185 ctrll alt keycode 125 = Meta_Tab
186 ctrll alt shift keycode 125 = Meta_Tab
187 ctrll alt altgr keycode 125 = Meta_Tab
188 ctrll alt control keycode 125 = Meta_Tab
189
190 # KEY_A
191 keycode 30 = o
192 altgr keycode 30 = slash
193 alt altgr keycode 30 = Meta_slash
194 alt altgr shift keycode 30 = Meta_slash
195 ctrll keycode 30 = Home
196 ctrll altgr keycode 30 = slash
197 ctrll alt keycode 30 = Meta_Home
198 ctrll alt altgr keycode 30 = Meta_slash
199
200 # KEY_S
201 keycode 31 = h
202 altgr keycode 31 = minus
203 control keycode 31 = BackSpace
204 control shift keycode 31 = BackSpace
205 alt altgr keycode 31 = Meta_minus
206 alt altgr shift keycode 31 = Meta_minus
207 alt control keycode 31 = Meta_BackSpace
208 alt control shift keycode 31 = Meta_BackSpace
209 ctrll keycode 31 = Left
210 ctrll altgr keycode 31 = minus
211 ctrll control keycode 31 = BackSpace
212 ctrll control shift keycode 31 = BackSpace
213 ctrll alt keycode 31 = Meta_Left
214 ctrll alt altgr keycode 31 = Meta_minus
215 ctrll alt control keycode 31 = Meta_BackSpace
216
217 # KEY_D
218 keycode 32 = e
219 altgr keycode 32 = braceleft
220 alt altgr keycode 32 = Meta_braceleft
221 alt altgr shift keycode 32 = Meta_braceleft
222 ctrll keycode 32 = Down
223 ctrll altgr keycode 32 = braceleft
224 ctrll alt keycode 32 = Meta_Down
225 ctrll alt altgr keycode 32 = Meta_braceleft
226
227 # KEY_F
228 keycode 33 = a
229 altgr keycode 33 = braceright
230 alt altgr keycode 33 = Meta_braceright
231 alt altgr shift keycode 33 = Meta_braceright
232 ctrll keycode 33 = Right
233 ctrll altgr keycode 33 = braceright
234 ctrll alt keycode 33 = Meta_Right
235 ctrll alt altgr keycode 33 = Meta_braceright
236
237 # KEY_G
238 keycode 34 = i
239 altgr keycode 34 = asterisk
240 control keycode 34 = Tab
241 control shift keycode 34 = Tab
242 alt altgr keycode 34 = Meta_asterisk
243 alt altgr shift keycode 34 = Meta_asterisk
244 alt control keycode 34 = Meta_Tab
245 alt control shift keycode 34 = Meta_Tab
246 ctrll keycode 34 = End
247 ctrll altgr keycode 34 = asterisk
248 ctrll control keycode 34 = Tab
249 ctrll control shift keycode 34 = Tab
250 ctrll alt keycode 34 = Meta_End
251 ctrll alt altgr keycode 34 = Meta_asterisk
252 ctrll alt control keycode 34 = Meta_Tab
253
254 # KEY_H
255 keycode 35 = d
256 altgr keycode 35 = question
257 alt altgr keycode 35 = Meta_question
258 alt altgr shift keycode 35 = Meta_question
259 ctrll keycode 35 = period
260 ctrll altgr keycode 35 = question
261 ctrll alt keycode 35 = Meta_period
262 ctrll alt altgr keycode 35 = Meta_question
263
264 # KEY_J
265 keycode 36 = r
266 altgr keycode 36 = parenleft
267 alt altgr keycode 36 = Meta_parenleft
268 alt altgr shift keycode 36 = Meta_parenleft
269 ctrll keycode 36 = four
270 ctrll altgr keycode 36 = parenleft
271 ctrll alt keycode 36 = Meta_four
272 ctrll alt altgr keycode 36 = Meta_parenleft
273
274 # KEY_K
275 keycode 37 = t
276 altgr keycode 37 = parenright
277 alt altgr keycode 37 = Meta_parenright
278 alt altgr shift keycode 37 = Meta_parenright
279 ctrll keycode 37 = five
280 ctrll altgr keycode 37 = parenright
281 ctrll alt keycode 37 = Meta_five
282 ctrll alt altgr keycode 37 = Meta_parenright
283
284 # KEY_L
285 keycode 38 = n
286 altgr keycode 38 = apostrophe
287 alt altgr keycode 38 = Meta_apostrophe
288 alt altgr shift keycode 38 = Meta_apostrophe
289 ctrll keycode 38 = six
290 ctrll altgr keycode 38 = apostrophe
291 ctrll alt keycode 38 = Meta_six
292 ctrll alt altgr keycode 38 = Meta_apostrophe
293
294 # KEY_SEMICOLON
295 keycode 39 = s
296 altgr keycode 39 = colon
297 alt altgr keycode 39 = Meta_colon
298 alt altgr shift keycode 39 = Meta_colon
299 ctrll keycode 39 = S
300 ctrll altgr keycode 39 = colon
301 ctrll alt altgr keycode 39 = Meta_colon
302
303 # KEY_APOSTROPHE
304 keycode 40 = AltGr
305
306 #==========================================================================
307 # Bottom Row
308 #==========================================================================
309
310 # KEY_LEFTSHIFT
311 keycode 42 = Shift
312
313 # KEY_Z
314 keycode 44 = comma
315 altgr keycode 44 = numbersign
316 alt keycode 44 = Meta_comma
317 alt shift keycode 44 = Meta_comma
318 alt altgr keycode 44 = Meta_numbersign
319 alt altgr shift keycode 44 = Meta_numbersign
320 alt control keycode 44 = Meta_comma
321 alt control shift keycode 44 = Meta_comma
322 ctrll keycode 44 = slash
323 ctrll altgr keycode 44 = numbersign
324 ctrll alt keycode 44 = Meta_slash
325 ctrll alt shift keycode 44 = Meta_comma
326 ctrll alt altgr keycode 44 = Meta_numbersign
327 ctrll alt control keycode 44 = Meta_comma
328
329 # KEY_X
330 keycode 45 = m
331 altgr keycode 45 = dollar
332 control keycode 45 = Return
333 control shift keycode 45 = Return
334 alt altgr keycode 45 = Meta_dollar
335 alt altgr shift keycode 45 = Meta_dollar
336 ctrll keycode 45 = asterisk
337 ctrll altgr keycode 45 = dollar
338 ctrll control keycode 45 = Return
339 ctrll control shift keycode 45 = Return
340 ctrll alt keycode 45 = Meta_asterisk
341 ctrll alt altgr keycode 45 = Meta_dollar
342
343 # KEY_C
344 keycode 46 = period
345 altgr keycode 46 = bar
346 control keycode 46 = Compose
347 control shift keycode 46 = Compose
348 alt keycode 46 = Meta_period
349 alt shift keycode 46 = Meta_period
350 alt altgr keycode 46 = Meta_bar
351 alt altgr shift keycode 46 = Meta_bar
352 alt control keycode 46 = Compose
353 alt control shift keycode 46 = Compose
354 ctrll keycode 46 = minus
355 ctrll altgr keycode 46 = bar
356 ctrll control keycode 46 = Compose
357 ctrll control shift keycode 46 = Compose
358 ctrll alt keycode 46 = Meta_minus
359 ctrll alt shift keycode 46 = Meta_period
360 ctrll alt altgr keycode 46 = Meta_bar
361 ctrll alt control keycode 46 = Compose
362
363 # KEY_V
364 keycode 47 = j
365 altgr keycode 47 = asciitilde
366 control keycode 47 = Linefeed
367 control shift keycode 47 = Linefeed
368 alt altgr keycode 47 = Meta_asciitilde
369 alt altgr shift keycode 47 = Meta_asciitilde
370 alt control keycode 47 = Meta_Linefeed
371 alt control shift keycode 47 = Meta_Linefeed
372 ctrll keycode 47 = plus
373 ctrll altgr keycode 47 = asciitilde
374 ctrll control keycode 47 = Linefeed
375 ctrll control shift keycode 47 = Linefeed
376 ctrll alt keycode 47 = Meta_plus
377 ctrll alt altgr keycode 47 = Meta_asciitilde
378 ctrll alt control keycode 47 = Meta_Linefeed
379
380 # KEY_B
381 keycode 48 = semicolon
382 altgr keycode 48 = grave
383 alt keycode 48 = Meta_semicolon
384 alt shift keycode 48 = Meta_semicolon
385 alt altgr keycode 48 = Meta_grave
386 alt altgr shift keycode 48 = Meta_grave
387 alt control shift keycode 48 = Meta_semicolon
388 ctrll keycode 48 = comma
389 ctrll altgr keycode 48 = grave
390 ctrll alt keycode 48 = Meta_comma
391 ctrll alt shift keycode 48 = Meta_semicolon
392 ctrll alt altgr keycode 48 = Meta_grave
393
394 # KEY_N
395 keycode 49 = g
396 altgr keycode 49 = plus
397 alt altgr keycode 49 = Meta_plus
398 alt altgr shift keycode 49 = Meta_plus
399 ctrll keycode 49 = zero
400 ctrll altgr keycode 49 = plus
401 ctrll alt keycode 49 = Meta_zero
402 ctrll alt altgr keycode 49 = Meta_plus
403
404 # KEY_M
405 keycode 50 = l
406 altgr keycode 50 = percent
407 alt altgr keycode 50 = Meta_percent
408 alt altgr shift keycode 50 = Meta_percent
409 ctrll keycode 50 = seven
410 ctrll altgr keycode 50 = percent
411 ctrll alt keycode 50 = Meta_seven
412 ctrll alt altgr keycode 50 = Meta_percent
413
414 # KEY_COMMA
415 keycode 51 = p
416 altgr keycode 51 = backslash
417 alt altgr keycode 51 = Meta_backslash
418 alt altgr shift keycode 51 = Meta_backslash
419 ctrll keycode 51 = eight
420 ctrll altgr keycode 51 = backslash
421 ctrll alt keycode 51 = Meta_eight
422 ctrll alt altgr keycode 51 = Meta_backslash
423
424 # KEY_DOT
425 keycode 52 = v
426 altgr keycode 52 = at
427 alt altgr keycode 52 = Meta_at
428 alt altgr shift keycode 52 = Meta_at
429 ctrll keycode 52 = nine
430 ctrll altgr keycode 52 = at
431 ctrll alt keycode 52 = Meta_nine
432 ctrll alt altgr keycode 52 = Meta_at
433
434 # KEY_SLASH
435 keycode 53 = CtrlL
436
437 # KEY_RIGHTSHIFT
438 keycode 54 = Shift
439
440 #==========================================================================
441 # Spacebar Row
442 #==========================================================================
443
444 # KEY_LEFTCTRL
445 keycode 29 = Control
446
447 # KEY_LEFTALT
448 keycode 56 = Alt
449
450 # KEY_RIGHTALT
451 keycode 100 = Alt
452
453 # KEY_RIGHTCTRL
454 keycode 97 = Control
455