Debian Codegraph @

test/data/keymaps/pure-virtual-mods-implicit.xkb

raw
1 xkb_keymap {
2 xkb_keycodes "test" {
3 minimum = 8;
4 maximum = 255;
5
6 <TLDE> = 49;
7 <AE01> = 10;
8 <AE02> = 11;
9 <AE03> = 12;
10 <AE04> = 13;
11 <AE05> = 14;
12 <AE06> = 15;
13 <AE07> = 16;
14 <AE08> = 17;
15 <AE09> = 18;
16 <AE10> = 19;
17 <AE11> = 20;
18 <AE12> = 21;
19 <BKSP> = 22;
20
21 <TAB> = 23;
22 <AD01> = 24;
23 <AD02> = 25;
24 <AD03> = 26;
25 <AD04> = 27;
26 <AD05> = 28;
27 <AD06> = 29;
28 <AD07> = 30;
29 <AD08> = 31;
30 <AD09> = 32;
31 <AD10> = 33;
32 <AD11> = 34;
33 <AD12> = 35;
34 <BKSL> = 51;
35 <RTRN> = 36;
36
37 <CAPS> = 66;
38 <AC01> = 38;
39 <AC02> = 39;
40 <AC03> = 40;
41 <AC04> = 41;
42 <AC05> = 42;
43 <AC06> = 43;
44 <AC07> = 44;
45 <AC08> = 45;
46 <AC09> = 46;
47 <AC10> = 47;
48 <AC11> = 48;
49 alias <AC12> = <BKSL>;
50
51 <LFSH> = 50;
52 <LSGT> = 94;
53 <AB01> = 52;
54 <AB02> = 53;
55 <AB03> = 54;
56 <AB04> = 55;
57 <AB05> = 56;
58 <AB06> = 57;
59 <AB07> = 58;
60 <AB08> = 59;
61 <AB09> = 60;
62 <AB10> = 61;
63 <RTSH> = 62;
64
65 <LVL3> = 92;
66 <RALT> = 108;
67 };
68
69 xkb_types "complete" {
70 // Define >20 virtual modifiers. This lead to overcome the X11 limit of
71 // 16 virtual modifiers.
72 virtual_modifiers
73 LevelThree,
74 ModA,
75 ModB,
76 ModC,
77 ModD,
78 ModE,
79 ModF,
80 ModG,
81 ModH,
82 ModI,
83 ModJ,
84 ModK,
85 ModL,
86 ModM,
87 ModN,
88 ModO,
89 ModP,
90 ModQ,
91 ModR,
92 ModS,
93 ModT,
94 ModU,
95 ModV;
96
97 type "ONE_LEVEL" {
98 modifiers= none;
99 level_name[Level1]= "Any";
100 };
101 type "TWO_LEVEL" {
102 modifiers= Shift;
103 map[Shift]= 2;
104 level_name[1]= "Base";
105 level_name[2]= "Shift";
106 };
107 type "TEST" {
108 modifiers=
109 Shift + LevelThree +
110 ModA + ModB + ModC + ModD + ModE + ModF + ModG +
111 ModH + ModI + ModJ + ModK + ModL + ModM + ModN +
112 ModO + ModP + ModQ + ModR + ModS + ModT + ModU + ModV;
113 map[ModA]= 2;
114 map[ModB]= 3;
115 map[ModC]= 4;
116 map[ModD]= 5;
117 map[ModE]= 6;
118 map[ModF]= 7;
119 map[ModG]= 8;
120 map[ModH]= 9;
121 map[ModI]= 10;
122 map[ModJ]= 11;
123 map[ModK]= 12;
124 map[ModL]= 13;
125 map[ModM]= 14;
126 map[ModN]= 15;
127 map[ModO]= 16;
128 map[ModP]= 17;
129 map[ModQ]= 18;
130 map[ModR]= 19;
131 map[ModS]= 20;
132 map[ModT]= 21;
133 map[ModU]= 22;
134 map[ModV]= 23;
135 map[ModV+Shift]= 24;
136 map[ModA+ModS]= 25;
137 map[ModA+ModQ]= 26;
138 map[LevelThree+ModA]= 27;
139 map[LevelThree+ModA+ModS]= 28;
140 map[ModA+ModB+ModC]= 29;
141
142 level_name[1]= "1";
143 level_name[2]= "2";
144 level_name[3]= "3";
145 level_name[4]= "4";
146 level_name[5]= "5";
147 level_name[6]= "6";
148 level_name[7]= "7";
149 level_name[8]= "8";
150 level_name[9]= "9";
151 level_name[10]= "10";
152 level_name[11]= "11";
153 level_name[12]= "12";
154 level_name[13]= "13";
155 level_name[14]= "14";
156 level_name[15]= "15";
157 level_name[16]= "16";
158 level_name[17]= "17";
159 level_name[18]= "18";
160 level_name[19]= "19";
161 level_name[20]= "20";
162 level_name[21]= "21";
163 level_name[22]= "22";
164 level_name[23]= "23";
165 level_name[24]= "24";
166 level_name[25]= "25";
167 level_name[26]= "26";
168 level_name[27]= "27";
169 level_name[28]= "28";
170 level_name[29]= "29";
171 };
172 };
173 xkb_compatibility "complete" {
174 virtual_modifiers LevelThree, ModA, ModB, ModC, ModD;
175
176 interpret.useModMapMods= AnyLevel;
177 interpret.repeat= False;
178 interpret.locking= False;
179
180 interpret Any+AnyOf(all) {
181 action= SetMods(modifiers=modMapMods,clearLocks);
182 };
183
184 interpret ISO_Level3_Shift+AnyOf(all) {
185 virtualModifier= LevelThree;
186 useModMapMods=level1;
187 action= SetMods(modifiers=LevelThree,clearLocks);
188 };
189 interpret a {
190 action= SetMods(modifiers=ModA,clearLocks);
191 };
192 interpret b {
193 action= SetMods(modifiers=ModB,clearLocks);
194 };
195 interpret c {
196 action= SetMods(modifiers=ModC,clearLocks);
197 };
198 interpret d {
199 action= SetMods(modifiers=ModD,clearLocks);
200 };
201 interpret e {
202 action= SetMods(modifiers=ModE,clearLocks);
203 };
204 interpret f {
205 action= SetMods(modifiers=ModF,clearLocks);
206 };
207 interpret g {
208 action= SetMods(modifiers=ModG,clearLocks);
209 };
210 interpret h {
211 action= SetMods(modifiers=ModH,clearLocks);
212 };
213 interpret i {
214 action= SetMods(modifiers=ModI,clearLocks);
215 };
216 interpret j {
217 action= SetMods(modifiers=ModJ,clearLocks);
218 };
219 interpret k {
220 action= SetMods(modifiers=ModK,clearLocks);
221 };
222 interpret l {
223 action= SetMods(modifiers=ModL,clearLocks);
224 };
225 interpret m {
226 action= SetMods(modifiers=ModM,clearLocks);
227 };
228 interpret n {
229 action= SetMods(modifiers=ModN,clearLocks);
230 };
231 interpret o {
232 action= SetMods(modifiers=ModO,clearLocks);
233 };
234 interpret p {
235 action= SetMods(modifiers=ModP,clearLocks);
236 };
237 interpret q {
238 action= SetMods(modifiers=ModQ,clearLocks);
239 };
240 interpret r {
241 action= SetMods(modifiers=ModR,clearLocks);
242 };
243 interpret s {
244 action= SetMods(modifiers=ModS,clearLocks);
245 };
246 interpret t {
247 action= SetMods(modifiers=ModT,clearLocks);
248 };
249 interpret u {
250 action= SetMods(modifiers=ModU,clearLocks);
251 };
252 interpret v {
253 action= SetMods(modifiers=ModV,clearLocks);
254 };
255 };
256 xkb_symbols {
257 name[group1]="Test";
258
259 key <LFSH> { [Shift_L] };
260 key <RALT> { [ISO_Level3_Shift] };
261 key <LVL3> { [ISO_Level3_Shift] };
262 modmap Shift { <LFSH> };
263 modmap Mod5 { <LVL3>, <RALT> };
264
265 key <AD01> {[ q, Q ]};
266 key <AD02> {[ w, W ]};
267 key <AD03> {[ e, E ]};
268 key <AD04> {[ r, R ]};
269 key <AD05> {[ t, T ]};
270 key <AD06> {[ y, Y ]};
271 key <AD07> {[ u, U ]};
272 key <AD08> {[ i, I ]};
273 key <AD09> {[ o, O ]};
274 key <AD10> {[ p, P ]};
275
276 key <AC01> {[ a, A ]};
277 key <AC02> {[ s, S ]};
278 key <AC03> {[ d, D ]};
279 key <AC04> {[ f, F ]};
280 key <AC05> {[ g, G ]};
281 key <AC06> {[ h, H ]};
282 key <AC07> {[ j, J ]};
283 key <AC08> {[ k, K ]};
284 key <AC09> {[ l, L ]};
285
286 key <AB01> {[ z, Z ]};
287 key <AB02> {[ x, X ]};
288 key <AB03> {[ c, C ]};
289 key <AB04> {[ v, V ]};
290 key <AB05> {[ b, B ]};
291 key <AB06> {[ n, N ]};
292 key <AB07> {[ m, M ]};
293
294 key.type[1] = "TEST";
295 key <AD02> {
296 [ w, a, b, c, d, e, f, g, h, i, j, k, l, m, n
297 , o, p, q, r, s, t, u, v, V, 1, 2, 3, 4, 5 ]
298 };
299 };
300 };