Debian Codegraph @

symbols/grp

raw
1 // The right Alt key (while pressed) chooses the next group.
2 partial modifier_keys
3 xkb_symbols "switch" {
4 key <RALT> {[ Mode_switch, Multi_key ]};
5 };
6
7 // The left Alt key (while pressed) chooses the next group.
8 partial modifier_keys
9 xkb_symbols "lswitch" {
10 key <LALT> {[ Mode_switch, Multi_key ]};
11 };
12
13 // The left Win key (while pressed) chooses the next group.
14 partial modifier_keys
15 xkb_symbols "lwin_switch" {
16 key <LWIN> {[ Mode_switch, Multi_key ]};
17 };
18
19 // The right Win key (while pressed) chooses the next group.
20 partial modifier_keys
21 xkb_symbols "rwin_switch" {
22 key <RWIN> {[ Mode_switch, Multi_key ]};
23 };
24
25 // Either Win key (while pressed) chooses the next group.
26 partial modifier_keys
27 xkb_symbols "win_switch" {
28 include "group(lwin_switch)"
29 include "group(rwin_switch)"
30 };
31
32 // The Menu key (while pressed) chooses the next group,
33 // while Shift+Menu acts as Menu.
34 partial modifier_keys
35 xkb_symbols "menu_switch" {
36 key <MENU> {[ Mode_switch, Menu ]};
37 };
38
39 // The right Ctrl key (while pressed) chooses the next group.
40 partial modifier_keys
41 xkb_symbols "rctrl_switch" {
42 key <RCTL> {[ Mode_switch ]};
43 };
44
45 // The Caps_Lock key (while pressed) chooses the next group,
46 // while Alt+Caps_Lock toggles CapsLock.
47 partial modifier_keys
48 xkb_symbols "caps_switch" {
49 key <CAPS> {[ Mode_switch, Caps_Lock ], type[group1] = "PC_ALT_LEVEL2" };
50 };
51
52 // Pressing the right Alt key switches to the next group.
53 partial modifier_keys
54 xkb_symbols "toggle" {
55 key <RALT> {[ ISO_Next_Group ]};
56 };
57
58 // Pressing the left Alt key switches to the next group.
59 partial modifier_keys
60 xkb_symbols "lalt_toggle" {
61 key <LALT> {[ ISO_Next_Group ]};
62 };
63
64 // Pressing both Shift keys switches to the next or previous group
65 // (depending on which Shift is pressed first).
66 partial modifier_keys
67 xkb_symbols "shifts_toggle" {
68 key <LFSH> {[ Shift_L, ISO_Prev_Group ], type[group1] = "TWO_LEVEL" };
69 key <RTSH> {[ Shift_R, ISO_Next_Group ], type[group1] = "TWO_LEVEL" };
70 };
71
72 // Pressing Caps_Lock switches to the next group,
73 // while Shift+Caps_Lock toggles CapsLock.
74 partial modifier_keys
75 xkb_symbols "caps_toggle" {
76 key <CAPS> {[ ISO_Next_Group, Caps_Lock ], type[group1] = "TWO_LEVEL" };
77 };
78
79 // Pressing Shift+Caps_Lock switches to the next group.
80 partial modifier_keys
81 xkb_symbols "shift_caps_toggle" {
82 key <CAPS> {[ any, ISO_Next_Group ], type[group1] = "TWO_LEVEL" };
83 };
84
85 // Pressing Alt+Space switches to the next group.
86 partial modifier_keys
87 xkb_symbols "alt_space_toggle" {
88 key <SPCE> {[ space, ISO_Next_Group ], type[group1] = "PC_ALT_LEVEL2" };
89 };
90
91 // Pressing Win+Space switches to the next group.
92 partial modifier_keys
93 xkb_symbols "win_space_toggle" {
94 key <SPCE> {[ space, ISO_Next_Group ], type[group1] = "PC_SUPER_LEVEL2" };
95 };
96
97 // Pressing Ctrl+Space switches to the next group.
98 partial modifier_keys
99 xkb_symbols "ctrl_space_toggle" {
100 key <SPCE> {[ space, ISO_Next_Group ], type[group1] = "PC_CONTROL_LEVEL2" };
101 };
102
103
104 // Pressing Caps_Lock selects the first group,
105 // pressing Shift+Caps_Lock selects the second group.
106 partial modifier_keys
107 xkb_symbols "caps_select" {
108 key <CAPS> {[ ISO_First_Group, ISO_Last_Group ], type[group1] = "TWO_LEVEL" };
109 };
110
111 // Pressing the left Win key selects the first group,
112 // pressing the right Win key or the Menu key selects the second group.
113 partial modifier_keys
114 xkb_symbols "win_menu_select" {
115 key <LWIN> {[ ISO_First_Group ]};
116 key <RWIN> {[ ISO_Last_Group ]};
117 key <MENU> {[ ISO_Last_Group ]};
118 };
119
120 // Pressing the left Ctrl key selects the first group,
121 // pressing the right Ctrl key selects the second group.
122 partial modifier_keys
123 xkb_symbols "ctrl_select" {
124 key <LCTL> {[ ISO_First_Group ]};
125 key <RCTL> {[ ISO_Last_Group ]};
126 };
127
128
129 //
130 // CTRL-SHIFT toggle section
131 //
132 partial modifier_keys
133 xkb_symbols "lctrl_lshift_toggle" {
134 key <LFSH> {[ Shift_L, ISO_Next_Group ], type[group1] = "PC_CONTROL_LEVEL2" };
135 key <LCTL> {[ Control_L, ISO_Next_Group ]};
136 };
137
138 partial modifier_keys
139 xkb_symbols "lctrl_lshift_toggle_rev" {
140 key <LFSH> {[ Shift_L, ISO_Prev_Group ], type[group1] = "PC_CONTROL_LEVEL2" };
141 key <LCTL> {[ Control_L, ISO_Prev_Group ]};
142 };
143
144 partial modifier_keys
145 xkb_symbols "rctrl_rshift_toggle" {
146 key <RTSH> {[ Shift_R, ISO_Next_Group ], type[group1] = "PC_CONTROL_LEVEL2" };
147 key <RCTL> {[ Control_R, ISO_Next_Group ]};
148 };
149
150 partial modifier_keys
151 xkb_symbols "ctrl_shift_toggle" {
152 include "group(lctrl_lshift_toggle)"
153 include "group(rctrl_rshift_toggle)"
154 };
155
156 partial modifier_keys
157 xkb_symbols "ctrl_shift_toggle_bidir" {
158 include "group(lctrl_lshift_toggle_rev)"
159 include "group(rctrl_rshift_toggle)"
160 };
161
162
163 //
164 // CTRL-ALT toggle section
165 //
166 partial modifier_keys
167 xkb_symbols "lctrl_lalt_toggle" {
168 key <LALT> {[ NoSymbol, ISO_Next_Group ], type[group1] = "PC_CONTROL_LEVEL2" };
169 key <LCTL> {[ Control_L, ISO_Next_Group ], type[group1] = "PC_ALT_LEVEL2" };
170 };
171
172 partial modifier_keys
173 xkb_symbols "lctrl_lalt_toggle_rev" {
174 key <LALT> {[ NoSymbol, ISO_Prev_Group ], type[group1] = "PC_CONTROL_LEVEL2" };
175 key <LCTL> {[ Control_L, ISO_Prev_Group ], type[group1] = "PC_ALT_LEVEL2" };
176 };
177
178 partial modifier_keys
179 xkb_symbols "rctrl_ralt_toggle" {
180 key <RALT> {[ NoSymbol, ISO_Next_Group ], type[group1] = "PC_CONTROL_LEVEL2" };
181 key <RCTL> {[ Control_R, ISO_Next_Group ], type[group1] = "PC_ALT_LEVEL2" };
182 };
183
184 partial modifier_keys
185 xkb_symbols "ctrl_alt_toggle" {
186 include "group(lctrl_lalt_toggle)"
187 include "group(rctrl_ralt_toggle)"
188 };
189
190 partial modifier_keys
191 xkb_symbols "ctrl_alt_toggle_bidir" {
192 include "group(lctrl_lalt_toggle_rev)"
193 include "group(rctrl_ralt_toggle)"
194 };
195
196
197 //
198 // ALT-SHIFT toggle section
199 //
200 partial modifier_keys
201 xkb_symbols "lalt_lshift_toggle" {
202 key <LALT> {[ NoSymbol, ISO_Next_Group ], type[group1] = "TWO_LEVEL" };
203 key <LFSH> {[ Shift_L, ISO_Next_Group ], type[group1] = "PC_ALT_LEVEL2" };
204 };
205
206 partial modifier_keys
207 xkb_symbols "lalt_lshift_toggle_rev" {
208 key <LALT> {[ NoSymbol, ISO_Prev_Group ], type[group1] = "TWO_LEVEL" };
209 key <LFSH> {[ Shift_L, ISO_Prev_Group ], type[group1] = "PC_ALT_LEVEL2" };
210 };
211
212 partial modifier_keys
213 xkb_symbols "ralt_rshift_toggle" {
214 key <RALT> {[ NoSymbol, ISO_Next_Group ], type[group1] = "TWO_LEVEL" };
215 key <RTSH> {[ Shift_R, ISO_Next_Group ], type[group1] = "PC_ALT_LEVEL2" };
216 };
217
218 partial modifier_keys
219 xkb_symbols "alt_shift_toggle" {
220 include "group(lalt_lshift_toggle)"
221 include "group(ralt_rshift_toggle)"
222 };
223
224 partial modifier_keys
225 xkb_symbols "alt_shift_toggle_bidir" {
226 include "group(lalt_lshift_toggle_rev)"
227 include "group(ralt_rshift_toggle)"
228 };
229
230
231 // Pressing the Menu key switches to the next group,
232 // while Shift+Menu acts as Menu.
233 partial modifier_keys
234 xkb_symbols "menu_toggle" {
235 key <MENU> {[ ISO_Next_Group, Menu ]};
236 };
237
238 // Pressing the left Win key switches to the next group.
239 partial modifier_keys
240 xkb_symbols "lwin_toggle" {
241 key <LWIN> {[ ISO_Next_Group ]};
242 };
243
244 // Pressing the right Win key switches to the next group.
245 partial modifier_keys
246 xkb_symbols "rwin_toggle" {
247 key <RWIN> {[ ISO_Next_Group ]};
248 };
249
250 // Pressing both Ctrl keys switches to the next or previous group
251 // (depending on which Ctrl is pressed first).
252 partial modifier_keys
253 xkb_symbols "ctrls_toggle" {
254 key <LCTL> {[ NoSymbol, ISO_Prev_Group ], type[group1] = "PC_CONTROL_LEVEL2" };
255 key <RCTL> {[ NoSymbol, ISO_Next_Group ], type[group1] = "PC_CONTROL_LEVEL2" };
256 };
257
258 // Pressing both Alt keys switches to the next or previous group
259 // (depending on which Alt is pressed first).
260 partial modifier_keys
261 xkb_symbols "alts_toggle" {
262 key <LALT> {[ Alt_L, ISO_Prev_Group ], type[group1] = "PC_ALT_LEVEL2" };
263 key <RALT> {[ Alt_R, ISO_Next_Group ], type[group1] = "PC_ALT_LEVEL2" };
264 };
265
266 // Pressing Alt plus AltGr switches to the next or previous group
267 // (depending on which one is pressed first).
268 partial modifier_keys
269 xkb_symbols "alt_altgr_toggle" {
270 key <LALT> {[ Alt_L, Alt_L, ISO_Prev_Group, ISO_Prev_Group ],
271 type[group1] = "FOUR_LEVEL" };
272 key <RALT> {[ ISO_Level3_Shift, ISO_Next_Group ], type[group1] = "PC_ALT_LEVEL2" };
273 };
274
275 // Pressing the left Shift key switches to the next group.
276 partial modifier_keys
277 xkb_symbols "lshift_toggle" {
278 key <LFSH> {[ ISO_Next_Group ]};
279 };
280
281 // Pressing the right Shift key switches to the next group.
282 partial modifier_keys
283 xkb_symbols "rshift_toggle" {
284 key <RTSH> {[ ISO_Next_Group ]};
285 };
286
287 // Pressing the left Ctrl key switches to the next group.
288 partial modifier_keys
289 xkb_symbols "lctrl_toggle" {
290 key <LCTL> {[ ISO_Next_Group ]};
291 };
292
293 // Pressing the right Ctrl key switches to the next group.
294 partial modifier_keys
295 xkb_symbols "rctrl_toggle" {
296 key <RCTL> {[ ISO_Next_Group ]};
297 };
298
299 // Pressing Alt+Caps_Lock switches to the next group.
300 partial modifier_keys
301 xkb_symbols "alt_caps_toggle" {
302 key <CAPS> {[ any, ISO_Next_Group ], type[group1] = "PC_ALT_LEVEL2" };
303 };
304
305 hidden partial modifier_keys
306 xkb_symbols "olpc" {
307 key <I219> {[ ISO_Next_Group, ISO_Prev_Group ]};
308 };
309
310 // Pressing the Scroll Lock key switches to the next group.
311 partial modifier_keys
312 xkb_symbols "sclk_toggle" {
313 key <SCLK> {[ ISO_Next_Group ]};
314 };
315
316 // Pressing Ctrl + the left Win key selects the first group,
317 // pressing Ctrl + the Menu key selects the second group.
318 partial modifier_keys
319 xkb_symbols "lctrl_lwin_rctrl_menu" {
320 key <LWIN> {[ Super_L, ISO_First_Group ], type[group1] = "PC_CONTROL_LEVEL2" };
321 key <MENU> {[ Menu, ISO_Last_Group ], type[group1] = "PC_CONTROL_LEVEL2" };
322 };
323
324 // Pressing Ctrl + the left Win key switches to the next group.
325 partial modifier_keys
326 xkb_symbols "lctrl_lwin_toggle" {
327 key <LWIN> {[ Super_L, ISO_Next_Group ], type[group1] = "PC_CONTROL_LEVEL2" };
328 };