1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
|
#!sudo loadkeys
#Install to /usr/share/kbd/keymaps/i386/qwerty/sv-maandree.map[.gz]
charset "iso-8859-1"
keymaps 0-6,8-14
include "qwerty-layout"
include "linux-with-alt-and-altgr"
plain keycode 83 = KP_Comma
strings as usual
## reflect <shift>{up,down,right,left}
shift keycode 103 = F103
shift keycode 108 = F108
shift keycode 106 = F106
shift keycode 105 = F105
## reflect <control>{up,down,right,left}
control keycode 103 = F113
control keycode 108 = F118
control keycode 106 = F116
control keycode 105 = F115
## reflect <control><shift>{up,down,right,left}
control shift keycode 103 = F123
control shift keycode 108 = F128
control shift keycode 106 = F126
control shift keycode 105 = F125
## map <alternative><shift>{right,left} to C-x {right,left}
## and <control><alternative>{right,left} to C-x {right,left}
alt shift keycode 106 = F156
alt shift keycode 105 = F155
control alt keycode 106 = F156
control alt keycode 105 = F155
## map <alternative graph>{right,left} to {end,home}
altgr keycode 106 = F136
altgr keycode 105 = F135
## map {menu,R-super} to {end,home}
keycode 127 = F136
keycode 126 = F135
## map <alternative>{menu,R-super} to legacy {home,end}
alt keycode 127 = F146
alt keycode 126 = F145
## map <alternative>{menu,R-super} to <shift>{home,end}
shift alt keycode 127 = F168
shift alt keycode 126 = F167
## map <alternative>{menu,R-super} to <control>{home,end}
control alt keycode 127 = F178
control alt keycode 126 = F177
## map <alternative>{menu,R-super} to <control><shift>{home,end}
control shift alt keycode 127 = F188
control shift alt keycode 126 = F187
## map <shift>L-super to compose
shift keycode 125 = Compose
## map <alternative><shift>F{1..12} to console {13..24}
alt shift keycode 59 = Console_13
alt shift keycode 60 = Console_14
alt shift keycode 61 = Console_15
alt shift keycode 62 = Console_16
alt shift keycode 63 = Console_17
alt shift keycode 64 = Console_18
alt shift keycode 65 = Console_19
alt shift keycode 66 = Console_20
alt shift keycode 67 = Console_21
alt shift keycode 68 = Console_22
alt shift keycode 87 = Console_23
alt shift keycode 88 = Console_24
## map <control><shift>F{1..12} to console {13..24}
control shift keycode 59 = Console_13
control shift keycode 60 = Console_14
control shift keycode 61 = Console_15
control shift keycode 62 = Console_16
control shift keycode 63 = Console_17
control shift keycode 64 = Console_18
control shift keycode 65 = Console_19
control shift keycode 66 = Console_20
control shift keycode 67 = Console_21
control shift keycode 68 = Console_22
control shift keycode 87 = Console_23
control shift keycode 88 = Console_24
## map <alternative><control><shift>F{1..12} to console {25..36}
alt control shift keycode 59 = Console_25
alt control shift keycode 60 = Console_26
alt control shift keycode 61 = Console_27
alt control shift keycode 62 = Console_28
alt control shift keycode 63 = Console_29
alt control shift keycode 64 = Console_30
alt control shift keycode 65 = Console_31
alt control shift keycode 66 = Console_32
alt control shift keycode 67 = Console_33
alt control shift keycode 68 = Console_34
alt control shift keycode 87 = Console_35
alt control shift keycode 88 = Console_36
## map <alternative><alternative graph>F{1..12} to console {37..48}
alt altgr keycode 59 = Console_37
alt altgr keycode 60 = Console_38
alt altgr keycode 61 = Console_39
alt altgr keycode 62 = Console_40
alt altgr keycode 63 = Console_41
alt altgr keycode 64 = Console_42
alt altgr keycode 65 = Console_43
alt altgr keycode 66 = Console_44
alt altgr keycode 67 = Console_45
alt altgr keycode 68 = Console_46
alt altgr keycode 87 = Console_47
alt altgr keycode 88 = Console_48
## map <control><alternative graph>F{1..12} to console {37..48}
control altgr keycode 59 = Console_37
control altgr keycode 60 = Console_38
control altgr keycode 61 = Console_39
control altgr keycode 62 = Console_40
control altgr keycode 63 = Console_41
control altgr keycode 64 = Console_42
control altgr keycode 65 = Console_43
control altgr keycode 66 = Console_44
control altgr keycode 67 = Console_45
control altgr keycode 68 = Console_46
control altgr keycode 87 = Console_47
control altgr keycode 88 = Console_48
## map <alternative><alternative graph><shift>F{1..12} to console {49..60}
alt altgr shift keycode 59 = Console_49
alt altgr shift keycode 60 = Console_50
alt altgr shift keycode 61 = Console_51
alt altgr shift keycode 62 = Console_52
alt altgr shift keycode 63 = Console_53
alt altgr shift keycode 64 = Console_54
alt altgr shift keycode 65 = Console_55
alt altgr shift keycode 66 = Console_56
alt altgr shift keycode 67 = Console_57
alt altgr shift keycode 68 = Console_58
alt altgr shift keycode 87 = Console_59
alt altgr shift keycode 88 = Console_60
## map <alternative><alternative graph><shift>F{1..3} to console {61..63}
alt altgr control keycode 59 = Console_61
alt altgr control keycode 60 = Console_62
alt altgr control keycode 61 = Console_63
## map escape and <alternative>escape to esc and M-esc
keycode 1 = Escape
alt keycode 1 = Meta_Escape
## map backspace and <alternative>backspace to backspace and M-backspace
keycode 14 = Delete
alt keycode 14 = Meta_Delete
## map tab, <shift>tab and <alternative>tab to tab, backstab = M-tab and M-tab = backtab
keycode 15 = Tab
shift keycode 15 = Meta_Tab
alt keycode 15 = Meta_Tab
## map space, <shift>space and <alternative graph>space all to space and <shift><alternative graph>space to nbsp
## and <control>space and <alternative>space to C-@ and M-space
keycode 57 = space space space F190
control keycode 57 = nul
alt keycode 57 = Meta_space
## [<normal> <shift> <alternative graph> <shift><alternative graph>]
## [<alternative> <alternative><shift> <alternative><alternative graph> <alternative><shift><alternative graph>]
## [<control> <control><shift> <control><alternative graph> <control><shift><alternative graph>]
## § 1 2 3 4 5 6 7 8 9 0 + ´ C- <control>
## q w e r t y u i o p å ^ M- <meta>
## a s d f g h j k l ö ä ' D- <dead>
## < z x c v b n m , . -
## § = [§ ½ °] [M-`] [C-@]
keycode 41 = section onehalf degree
alt keycode 41 = Meta_grave
control keycode 41 = nul
## 1 = [1 ! ¡ ¹] [M-1 M-! M-¡ M-¹] []
keycode 2 = one exclam F104 F109
alt keycode 2 = Meta_one
alt shift keycode 2 = F201
alt altgr keycode 2 = F107
alt shift altgr keycode 2 = F114
## 2 = [2 " @ ²] [M-2 M-" M-@ M-²] [C-@]
keycode 3 = two quotedbl at F110
alt keycode 3 = Meta_two
alt shift keycode 3 = F202
alt altgr keycode 3 = Meta_at
alt shift altgr keycode 3 = F117
control keycode 3 = nul
## 3 = [3 # £ ³] [M-3 M-# M-£ M-³] [esc]
keycode 4 = three numbersign sterling F111
alt keycode 4 = Meta_three
alt shift keycode 4 = F203
alt altgr keycode 4 = Meta_sterling
alt shift altgr keycode 4 = F119
control keycode 4 = Escape
## 4 = [4 ç $ ¼] [M-4 M-ç M-$ M-¼] [C-\]
keycode 5 = four ccedilla dollar F112
alt keycode 5 = Meta_four
alt shift keycode 5 = F204
alt altgr keycode 5 = Meta_dollar
alt shift altgr keycode 5 = F120
control keycode 5 = Control_backslash
## 5 = [5 % € ¢] [M-5 M-% M-€ M-¢] [C-]]
keycode 6 = five percent F101 F121
alt keycode 6 = Meta_five
alt shift keycode 6 = F205
alt altgr keycode 6 = F102
alt shift altgr keycode 6 = F122
control keycode 6 = Control_bracketright
## 6 = [6 & ¥ ¬] [M-6 M-& M-¥ M-¬] [C-^]
keycode 7 = six ampersand F124 notsign
alt keycode 7 = Meta_six
alt shift keycode 7 = F206
alt altgr keycode 7 = F127
alt shift altgr keycode 7 = Meta_notsign
control keycode 7 = Control_asciicircum
## 7 = [7 / {] [M-7 M-/ M-{] [C-_]
keycode 8 = seven slash braceleft
alt keycode 8 = Meta_seven
alt shift keycode 8 = F207
alt altgr keycode 8 = Meta_braceleft
control keycode 8 = Control_underscore
## 8 = [8 ( [] [M-8 M-( M-[] [del]
keycode 9 = eight parenleft bracketleft
alt keycode 9 = Meta_eight
alt shift keycode 9 = F208
alt altgr keycode 9 = Meta_bracketleft
control keycode 9 = Delete
## 9 = [9 ) ]] [M-9 M-) M-]] []
keycode 10 = nine parenright bracketright
alt keycode 10 = Meta_nine
alt shift keycode 10 = F209
alt altgr keycode 10 = Meta_bracketright
## 0 = [0 = }] [M-0 M-= M-}] []
keycode 11 = zero equal braceright
alt keycode 11 = Meta_zero
alt shift keycode 11 = F210
alt altgr keycode 11 = Meta_braceright
## + = [+ ? \] [M--] [C-_]
keycode 12 = plus question backslash
alt keycode 12 = Meta_minus
control keycode 12 = Control_underscore
## ´ = [D-´ D-`] [M-=] []
keycode 13 = dead_acute dead_grave
alt keycode 13 = Meta_equal
control shift keycode 86 = Meta_q
control shift keycode 17 = Meta_w
control shift keycode 18 = Meta_e
control shift keycode 19 = Meta_r
control shift keycode 20 = Meta_t
control shift keycode 21 = Meta_y
control shift keycode 22 = Meta_u
control shift keycode 23 = Meta_i
control shift keycode 24 = Meta_o
control shift keycode 25 = Meta_p
keycode 26 = +aring +Aring slash bar
control keycode 26 = Escape
alt keycode 26 = Meta_bracketleft
keycode 27 = dead_diaeresis dead_circumflex dead_tilde
control keycode 27 = Control_bracketright
alt keycode 27 = Meta_bracketright
keycode 28 = Return
alt keycode 28 = Meta_Control_m
keycode 29 = Caps_Lock
control shift keycode 30 = Meta_a
control shift keycode 31 = Meta_s
control shift keycode 32 = Meta_d
control shift keycode 33 = Meta_f
control shift keycode 34 = Meta_j
control shift keycode 35 = Meta_h
control shift keycode 36 = Meta_l
control shift keycode 37 = Meta_k
control shift keycode 38 = Meta_l
keycode 39 = +odiaeresis +Odiaeresis
alt keycode 39 = Meta_semicolon
keycode 40 = +adiaeresis +Adiaeresis slash bar
control keycode 40 = Control_g
alt keycode 40 = Meta_apostrophe
keycode 42 = Shift
keycode 43 = apostrophe asterisk
control keycode 43 = Control_backslash
alt keycode 43 = Meta_backslash
control shift keycode 44 = Meta_z
control shift keycode 45 = Meta_x
control shift keycode 46 = Meta_c
control shift keycode 47 = Meta_v
control shift keycode 48 = Meta_b
control shift keycode 49 = Meta_n
control shift keycode 50 = Meta_m
keycode 51 = comma semicolon
alt keycode 51 = Meta_comma
keycode 52 = period colon
alt keycode 52 = Meta_period
keycode 53 = minus underscore slash backslash
control keycode 53 = Delete
alt keycode 53 = Meta_slash
shift control keycode 53 = Control_underscore
keycode 54 = Shift
keycode 56 = less greater bar slash
alt keycode 86 = Meta_less
keycode 58 = Control
keycode 16 = Alt
keycode 86 = q
keycode 97 = Control
alt keycode 104 = F195
alt keycode 109 = F196
control shift keycode 104 = F195
control shift keycode 109 = F196
## map <alternative graph>{qweruasdflzxcvbnm} to {‽ł↑®▄↔←↓→ł«»©“”│µ}
altgr keycode 16 = F200
altgr keycode 17 = F201
altgr keycode 18 = F202
altgr keycode 19 = F203
altgr keycode 22 = F236
altgr keycode 30 = F204
altgr keycode 31 = F205
altgr keycode 32 = F206
altgr keycode 33 = F207
altgr keycode 38 = F208
altgr keycode 44 = F209
altgr keycode 45 = F210
altgr keycode 46 = F211
altgr keycode 47 = F212
altgr keycode 48 = F213
altgr keycode 49 = F214
altgr keycode 50 = F215
## map <shift><alternative graph>{qwertyuasdfglzxcvbn} to {⸘Ł┬┼┌┐▀↕├┴┤└┘Ł⁅⁆’⸮‘─}
shift altgr keycode 16 = F216
shift altgr keycode 17 = F217
shift altgr keycode 18 = F218
shift altgr keycode 19 = F219
shift altgr keycode 20 = F220
shift altgr keycode 21 = F221
shift altgr keycode 22 = F235
shift altgr keycode 30 = F222
shift altgr keycode 31 = F223
shift altgr keycode 32 = F224
shift altgr keycode 33 = F225
shift altgr keycode 34 = F226
shift altgr keycode 35 = F227
shift altgr keycode 38 = F228
shift altgr keycode 44 = F229
shift altgr keycode 45 = F230
shift altgr keycode 46 = F231
shift altgr keycode 47 = F232
shift altgr keycode 48 = F233
shift altgr keycode 49 = F234
############################
string F103 = "\033[1;2A"
string F108 = "\033[1;2B"
string F106 = "\033[1;2C"
string F105 = "\033[1;2D"
string F113 = "\033[1;5A"
string F118 = "\033[1;5B"
string F116 = "\033[1;5C"
string F115 = "\033[1;5D"
string F123 = "\033[1;6A"
string F128 = "\033[1;6B"
string F126 = "\033[1;6C"
string F125 = "\033[1;6D"
string F156 = "\030\033[C"
string F155 = "\030\033[D"
string F136 = "\033OF"
string F135 = "\033OH"
string F146 = "\033[4~"
string F145 = "\033[1~"
string F168 = "\033[4;2~"
string F167 = "\033[1;2~"
string F178 = "\033[4;3~"
string F177 = "\033[1;3~"
string F188 = "\033[4;4~"
string F187 = "\033[1;4~"
string F195 = "\033\033[5~"
string F196 = "\033\033[6~"
string F200 = "‽"
string F201 = "ł"
string F202 = "↑"
string F203 = "®"
string F236 = "▄"
string F204 = "↔"
string F205 = "←"
string F206 = "↓"
string F207 = "→"
string F208 = "ł"
string F209 = "«"
string F210 = "»"
string F211 = "©"
string F212 = "“"
string F213 = "”"
string F214 = "│"
string F215 = "µ"
string F216 = "⸘"
string F217 = "Ł"
string F218 = "┬"
string F219 = "┼"
string F220 = "┌"
string F221 = "┐"
string F235 = "▀"
string F222 = "↕"
string F223 = "├"
string F224 = "┴"
string F225 = "┤"
string F226 = "└"
string F227 = "┘"
string F228 = "Ł"
string F229 = "⁅"
string F230 = "⁆"
string F231 = "⸮"
string F232 = "‘"
string F233 = "’"
string F234 = "─"
string F190 = " "
string F201 = "\033!"
string F202 = "\033\""
string F203 = "\033#"
string F204 = "\033ç"
string F205 = "\033%"
string F206 = "\033&"
string F207 = "\033/"
string F208 = "\033("
string F209 = "\033)"
string F210 = "\033="
string F101 = "€"
string F102 = "\033€"
string F104 = "¡"
string F107 = "\033¡"
string F109 = "¹"
string F110 = "²"
string F111 = "³"
string F112 = "¼"
string F114 = "\033¹"
string F117 = "\033²"
string F119 = "\033³"
string F120 = "\033¼"
string F121 = "¢"
string F122 = "\033¢"
string F124 = "¥"
string F127 = "\033¥"
|