Debian Codegraph @

test/data/keymaps/symbols-multi-actions.xkb

raw
1 xkb_keymap {
2 xkb_keycodes {
3 minimum = 1;
4 maximum = 255;
5 <01> = 1;
6 <02> = 2;
7 <03> = 3;
8 <04> = 4;
9 <05> = 5;
10 <06> = 6;
11 <07> = 7;
12 <08> = 8;
13 <09> = 9;
14 <10> = 10;
15 <11> = 11;
16 <12> = 12;
17 <13> = 13;
18 <14> = 14;
19 <15> = 15;
20 indicator 1 = "Caps Lock";
21 indicator 2 = "Num Lock";
22 indicator 3 = "Shift Lock";
23 };
24
25 xkb_types "basic_extra" {
26 virtual_modifiers NumLock=0x100,Alt=0x200,LevelThree=0x400,AltGr=0x800;
27
28 type "ONE_LEVEL" {
29 modifiers= none;
30 level_name[1]= "Any";
31 };
32 type "TWO_LEVEL" {
33 modifiers= Shift;
34 map[Shift]= 2;
35 level_name[1]= "Base";
36 level_name[2]= "Shift";
37 };
38 type "ALPHABETIC" {
39 modifiers= Shift+Lock;
40 map[Shift]= 2;
41 map[Lock]= 2;
42 level_name[1]= "Base";
43 level_name[2]= "Caps";
44 };
45 type "FOUR_LEVEL" {
46 modifiers= Shift+LevelThree;
47 map[Shift]= 2;
48 map[LevelThree]= 3;
49 map[Shift+LevelThree]= 4;
50 level_name[1]= "Base";
51 level_name[2]= "Shift";
52 level_name[3]= "Alt Base";
53 level_name[4]= "Shift Alt";
54 };
55 type "FOUR_LEVEL_ALPHABETIC" {
56 modifiers= Shift+Lock+LevelThree;
57 map[Shift]= 2;
58 map[Lock]= 2;
59 map[LevelThree]= 3;
60 map[Shift+LevelThree]= 4;
61 map[Lock+LevelThree]= 4;
62 map[Shift+Lock+LevelThree]= 3;
63 level_name[1]= "Base";
64 level_name[2]= "Shift";
65 level_name[3]= "Alt Base";
66 level_name[4]= "Shift Alt";
67 };
68 type "FOUR_LEVEL_SEMIALPHABETIC" {
69 modifiers= Shift+Lock+LevelThree;
70 map[Shift]= 2;
71 map[Lock]= 2;
72 map[LevelThree]= 3;
73 map[Shift+LevelThree]= 4;
74 map[Lock+LevelThree]= 3;
75 preserve[Lock+LevelThree]= Lock;
76 map[Shift+Lock+LevelThree]= 4;
77 preserve[Shift+Lock+LevelThree]= Lock;
78 level_name[1]= "Base";
79 level_name[2]= "Shift";
80 level_name[3]= "Alt Base";
81 level_name[4]= "Shift Alt";
82 };
83 type "FOUR_LEVEL_MIXED_KEYPAD" {
84 modifiers= Shift+NumLock+LevelThree;
85 map[NumLock]= 2;
86 map[Shift]= 2;
87 map[LevelThree]= 3;
88 map[NumLock+LevelThree]= 3;
89 map[Shift+LevelThree]= 4;
90 map[Shift+NumLock+LevelThree]= 4;
91 level_name[1]= "Base";
92 level_name[2]= "Number";
93 level_name[3]= "Alt Base";
94 level_name[4]= "Shift Alt";
95 };
96 type "FOUR_LEVEL_X" {
97 modifiers= Shift+Control+Alt+LevelThree;
98 map[LevelThree]= 2;
99 map[Shift+LevelThree]= 3;
100 map[Control+Alt]= 4;
101 level_name[1]= "Base";
102 level_name[2]= "Alt Base";
103 level_name[3]= "Shift Alt";
104 level_name[4]= "Ctrl+Alt";
105 };
106 type "SEPARATE_CAPS_AND_SHIFT_ALPHABETIC" {
107 modifiers= Shift+Lock+LevelThree;
108 map[Shift]= 2;
109 map[Lock]= 4;
110 preserve[Lock]= Lock;
111 map[LevelThree]= 3;
112 map[Shift+LevelThree]= 4;
113 map[Lock+LevelThree]= 3;
114 preserve[Lock+LevelThree]= Lock;
115 map[Shift+Lock+LevelThree]= 3;
116 level_name[1]= "Base";
117 level_name[2]= "Shift";
118 level_name[3]= "AltGr Base";
119 level_name[4]= "Shift AltGr";
120 };
121 type "FOUR_LEVEL_PLUS_LOCK" {
122 modifiers= Shift+Lock+LevelThree;
123 map[Shift]= 2;
124 map[LevelThree]= 3;
125 map[Shift+LevelThree]= 4;
126 map[Lock]= 5;
127 map[Shift+Lock]= 2;
128 map[Lock+LevelThree]= 3;
129 map[Shift+Lock+LevelThree]= 4;
130 level_name[1]= "Base";
131 level_name[2]= "Shift";
132 level_name[3]= "Alt Base";
133 level_name[4]= "Shift Alt";
134 level_name[5]= "Lock";
135 };
136 };
137
138 xkb_compatibility "basic" {
139 virtual_modifiers NumLock=0x100,Alt=0x200,LevelThree=0x400,AltGr=0x800;
140
141 interpret.useModMapMods= AnyLevel;
142 interpret.repeat= False;
143 interpret Shift_Lock+AnyOf(Shift+Lock) {
144 action= LockMods(modifiers=Shift);
145 };
146 interpret Num_Lock+AnyOf(all) {
147 virtualModifier= NumLock;
148 action= LockMods(modifiers=NumLock);
149 };
150 interpret Mode_switch+AnyOfOrNone(all) {
151 virtualModifier= AltGr;
152 useModMapMods=level1;
153 action= SetGroup(group=+1);
154 };
155 interpret Any+Exactly(Lock) {
156 action= LockMods(modifiers=Lock);
157 };
158 interpret Any+AnyOf(all) {
159 action= SetMods(modifiers=modMapMods,clearLocks);
160 };
161 indicator "Caps Lock" {
162 whichModState= locked;
163 modifiers= Lock;
164 };
165 indicator "Num Lock" {
166 whichModState= locked;
167 modifiers= NumLock;
168 };
169 indicator "Shift Lock" {
170 whichModState= locked;
171 modifiers= Shift;
172 };
173 };
174
175 xkb_symbols {
176 key <01> {
177 repeat= No,
178 symbols[1]= [ NoSymbol ],
179 actions[1]= [ SetMods(modifiers=Control) ]
180 };
181 key <02> {
182 repeat= No,
183 symbols[1]= [ NoSymbol, NoSymbol ],
184 actions[1]= [ SetMods(modifiers=Control), SetGroup(group=+1) ]
185 };
186 key <04> {
187 repeat= No,
188 symbols[1]= [ NoSymbol, NoSymbol ],
189 actions[1]= [ NoAction(), SetGroup(group=+1) ]
190 };
191 key <05> {
192 repeat= No,
193 symbols[1]= [ NoSymbol ],
194 actions[1]= [ SetMods(modifiers=Control) ]
195 };
196 key <07> {
197 repeat= No,
198 symbols[1]= [ NoSymbol ],
199 actions[1]= [ SetMods(modifiers=Control) ]
200 };
201 key <08> {
202 repeat= No,
203 symbols[1]= [ NoSymbol, NoSymbol ],
204 actions[1]= [ SetMods(modifiers=Control), SetGroup(group=+1) ]
205 };
206 key <09> {
207 repeat= No,
208 symbols[1]= [ NoSymbol ],
209 actions[1]= [ { SetMods(modifiers=Control), SetGroup(group=+1) } ]
210 };
211 key <10> {
212 repeat= No,
213 symbols[1]= [ NoSymbol ],
214 actions[1]= [ { SetMods(modifiers=Control), SetGroup(group=+1), Private(type=0x11,data[0]=0x66,data[1]=0x6f,data[2]=0x6f,data[3]=0x00,data[4]=0x00,data[5]=0x00,data[6]=0x00) } ]
215 };
216 key <11> {
217 repeat= No,
218 symbols[1]= [ NoSymbol, NoSymbol ],
219 actions[1]= [ SetMods(modifiers=Control), { SetGroup(group=+1), Private(type=0x11,data[0]=0x66,data[1]=0x6f,data[2]=0x6f,data[3]=0x00,data[4]=0x00,data[5]=0x00,data[6]=0x00) } ]
220 };
221 key <12> {
222 repeat= No,
223 symbols[1]= [ NoSymbol, NoSymbol ],
224 actions[1]= [ { SetMods(modifiers=Control), SetGroup(group=+1) }, Private(type=0x11,data[0]=0x66,data[1]=0x6f,data[2]=0x6f,data[3]=0x00,data[4]=0x00,data[5]=0x00,data[6]=0x00) ]
225 };
226 key <13> {
227 repeat= No,
228 symbols[1]= [ NoSymbol, NoSymbol ],
229 actions[1]= [ { SetMods(modifiers=Control), SetGroup(group=+1) }, { Private(type=0x11,data[0]=0x66,data[1]=0x6f,data[2]=0x6f,data[3]=0x00,data[4]=0x00,data[5]=0x00,data[6]=0x00), Private(type=0x11,data[0]=0x62,data[1]=0x61,data[2]=0x72,data[3]=0x00,data[4]=0x00,data[5]=0x00,data[6]=0x00) } ]
230 };
231 key <14> {
232 repeat= No,
233 symbols[1]= [ NoSymbol, NoSymbol, NoSymbol, NoSymbol ],
234 actions[1]= [ { SetMods(modifiers=Control), SetGroup(group=+1) }, Private(type=0x11,data[0]=0x66,data[1]=0x6f,data[2]=0x6f,data[3]=0x00,data[4]=0x00,data[5]=0x00,data[6]=0x00), { Private(type=0x11,data[0]=0x62,data[1]=0x61,data[2]=0x72,data[3]=0x00,data[4]=0x00,data[5]=0x00,data[6]=0x00), SetMods(modifiers=Control) }, NoAction() ]
235 };
236 key <15> {
237 repeat= No,
238 symbols[1]= [ NoSymbol, NoSymbol, NoSymbol, NoSymbol ],
239 actions[1]= [ { SetMods(modifiers=Control), SetGroup(group=+1) }, { Private(type=0x11,data[0]=0x66,data[1]=0x6f,data[2]=0x6f,data[3]=0x00,data[4]=0x00,data[5]=0x00,data[6]=0x00), Private(type=0x11,data[0]=0x62,data[1]=0x61,data[2]=0x72,data[3]=0x00,data[4]=0x00,data[5]=0x00,data[6]=0x00) }, SetMods(modifiers=Control), NoAction() ]
240 };
241 };
242
243 };