2 // $Xorg: group,v 1.3 2000/08/17 19:54:43 cpqbld Exp $
3 // using the group(switch) map, the right alt key temporarily chooses
4 // the second keyboard group (until it is released).
6 // $XFree86: xc/programs/xkbcomp/symbols/group,v 3.9 2003/12/30 13:26:25 pascal Exp $
10 symbols[Group1]= [ Mode_switch, Multi_key ],
15 // using the group(lswitch) map, the left alt key temporarily chooses
16 // the second keyboard group (until it is released).
19 xkb_symbols "lswitch" {
21 symbols[Group1]= [ Mode_switch, Multi_key ],
27 // using the group(win_switch) map, both Windows'logo keys temporarily
28 // choose the second keyboard group (until release). If you use this
29 // map, you would declare you keyboard as pc101 or pc102 instead of
32 xkb_symbols "win_switch" {
33 include "group(lwin_switch)"
34 include "group(rwin_switch)"
37 // using the group(lwin_switch) map, the left Windows' logo key
38 // temporarily chooses the second keyboard group (until it is
39 // released). If you use this map, you would declare you keyboard as
40 // pc101 or pc102 instead of pc104 or pc105.
42 xkb_symbols "lwin_switch" {
44 symbols[Group1] = [ Mode_switch, Multi_key ],
49 // using the group(rwin_switch) map, the right Windows' logo key
50 // temporarily chooses the second keyboard group (until it is
51 // released). If you use this map, you would declare you keyboard as
52 // pc101 or pc102 instead of pc104 or pc105.
54 xkb_symbols "rwin_switch" {
56 symbols[Group1] = [ Mode_switch, Multi_key ],
61 // Right Ctrl key temporary chooses the second keyboard group.
62 // Needed mainly for Canadian keyboard
64 xkb_symbols "rctrl_switch" {
66 symbols[Group1]= [ Mode_switch ]
70 // using the group(toggle) map, pressing the right alt key switches to
71 // the next sequential group (until the next explicit group change).
73 xkb_symbols "toggle" {
74 virtual_modifiers AltGr;
76 symbols[Group1]= [ ISO_Next_Group ],
81 // using the group(shifts_toggle) map, pressing both shift keys together
82 // locks the next or previous sequential keyboard group
83 // (depending on which shift is pressed first - right or left,
86 xkb_symbols "shifts_toggle" {
87 key <LFSH> { [ Shift_L, ISO_Prev_Group ] };
88 key <RTSH> { [ Shift_R, ISO_Next_Group ] };
91 // using the group(ctrl_shift_toggle) map, pressing:
92 // Control_L+Shift_L locks the previous group
93 // Control_R+Shift_R locks the next group
94 // If you have two groups and group wrap is enabled, the effect is
97 xkb_symbols "ctrl_shift_toggle" {
99 type[Group1]="PC_CONTROL_LEVEL2",
100 symbols[Group1]= [ Shift_L, ISO_Prev_Group ]
103 type[Group1]="PC_CONTROL_LEVEL2",
104 symbols[Group1]= [ Shift_R, ISO_Next_Group ]
106 key <LCTL> { [ Control_L, ISO_Prev_Group ] };
107 key <RCTL> { [ Control_R, ISO_Next_Group ] };
110 // using the group(lctrl_lshift_toggle) map, pressing:
111 // Control_L+Shift_L locks the next group
112 // If you have two groups and group wrap is enabled, the effect is
113 // indistinguishable.
114 partial modifier_keys
115 xkb_symbols "lctrl_lshift_toggle" {
117 type[Group1]="PC_CONTROL_LEVEL2",
118 symbols[Group1]= [ Shift_L, ISO_Next_Group ]
120 key <LCTL> { [ Control_L, ISO_Next_Group ] };
123 // using the group(rctrl_rshift_toggle) map, pressing:
124 // Control_R+Shift_R locks the next group
125 // If you have two groups and group wrap is enabled, the effect is
126 // indistinguishable.
127 partial modifier_keys
128 xkb_symbols "rctrl_rshift_toggle" {
130 type[Group1]="PC_CONTROL_LEVEL2",
131 symbols[Group1]= [ Shift_R, ISO_Next_Group ]
133 key <RCTL> { [ Control_R, ISO_Next_Group ] };
136 // using the group(shift_caps_toggle) map, pressing:
137 // Shift+Caps Lock toggles group
138 partial modifier_keys
139 xkb_symbols "shift_caps_toggle" {
140 key <CAPS> { [ Caps_Lock, ISO_Next_Group ] };
143 // using the group(shift_caps_switch) map, pressing:
144 // Caps Lock selects the first group
145 // Shift+Caps Lock selects the last group
146 partial modifier_keys
147 xkb_symbols "shift_caps_switch" {
148 key <CAPS> { [ ISO_First_Group, ISO_Last_Group ] };
151 // using the group(win_menu_switch) map, pressing:
152 // LWIN selects the first group
153 // RWIN or MENU selects the last group
154 partial modifier_keys
155 xkb_symbols "win_menu_switch" {
156 virtual_modifiers AltGr;
159 symbols[Group1] = [ ISO_First_Group ]
163 symbols[Group1] = [ ISO_Last_Group ]
167 symbols[Group1] = [ ISO_Last_Group ]
171 // using the group(lctrl_rctrl_switch) map, pressing:
172 // Left Control selects the first group
173 // Right Control selects the last group
174 partial modifier_keys
175 xkb_symbols "lctrl_rctrl_switch" {
176 virtual_modifiers AltGr;
179 symbols[Group1] = [ ISO_First_Group ]
183 symbols[Group1] = [ ISO_Last_Group ]
187 // using the group(ctrl_alt_toggle) map, pressing:
188 // Control_L+Alt_L locks the previous group
189 // Control_R+Alt_R locks the next group
190 // If you have two groups and group wrap is enabled, the effect is
191 // indistinguishable.
192 partial modifier_keys
193 xkb_symbols "ctrl_alt_toggle" {
194 virtual_modifiers Alt;
196 type[Group1]="PC_CONTROL_LEVEL2",
197 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
201 type[Group1]="PC_CONTROL_LEVEL2",
202 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
206 type[Group1]="PC_ALT_LEVEL2",
207 symbols[Group1]= [ Control_L, ISO_Prev_Group ]
210 type[Group1]="PC_ALT_LEVEL2",
211 symbols[Group1]= [ Control_R, ISO_Next_Group ]
215 // using the group(alt_shift_toggle) map, pressing:
216 // Shift_L+Alt_L locks the previous group
217 // Shift_R+Alt_R locks the next group
218 // If you have two groups and group wrap is enabled, the effect is
219 // indistinguishable.
220 partial modifier_keys
221 xkb_symbols "alt_shift_toggle" {
222 virtual_modifiers Alt;
224 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
228 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
232 type[Group1]="PC_ALT_LEVEL2",
233 symbols[Group1]= [ Shift_L, ISO_Prev_Group ]
236 type[Group1]="PC_ALT_LEVEL2",
237 symbols[Group1]= [ Shift_R, ISO_Next_Group ]
241 // using the group(menu_toggle) map, pressing:
242 // Menu key toggles groups
243 // Shift+Menu acts as Menu
244 partial modifier_keys
245 xkb_symbols "menu_toggle" {
246 key <MENU> { [ ISO_Next_Group, Menu ] };
249 // using the group(lwin_toggle) map, pressing the left Windows' logo key
250 // toggles groups. If you use this map, you would declare you keyboard
251 // as pc101 or pc102 instead of pc104 or pc105.
252 partial modifier_keys
253 xkb_symbols "lwin_toggle" {
254 virtual_modifiers AltGr;
257 symbols[Group1] = [ ISO_Next_Group ]
261 // using the group(rwin_toggle) map, pressing the right Windows' logo key
262 // toggles groups. If you use this map, you would declare you keyboard
263 // as pc101 or pc102 instead of pc104 or pc105.
264 partial modifier_keys
265 xkb_symbols "rwin_toggle" {
266 virtual_modifiers AltGr;
269 symbols[Group1] = [ ISO_Next_Group ]
273 // Both Ctrls pressed together toggle group
274 partial modifier_keys
275 xkb_symbols "ctrls_toggle" {
276 virtual_modifiers LControl, RControl;
278 type[Group1]="PC_RCONTROL_LEVEL2",
279 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
280 virtualMods= LControl
283 type[Group1]="PC_LCONTROL_LEVEL2",
284 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
285 virtualMods= RControl
289 // Both Alts pressed together toggle group
290 partial modifier_keys
291 xkb_symbols "alts_toggle" {
292 virtual_modifiers LAlt, RAlt;
294 type[Group1]="PC_RALT_LEVEL2",
295 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
299 type[Group1]="PC_LALT_LEVEL2",
300 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
305 // Left Shift key toggles group
306 partial modifier_keys
307 xkb_symbols "lshift_toggle" {
308 virtual_modifiers AltGr;
310 symbols[Group1]= [ ISO_Next_Group ],
315 // Right Shift key toggles group
316 partial modifier_keys
317 xkb_symbols "rshift_toggle" {
318 virtual_modifiers AltGr;
320 symbols[Group1]= [ ISO_Next_Group ],
325 // Left Alt key toggles group
326 partial modifier_keys
327 xkb_symbols "lalt_toggle" {
328 virtual_modifiers AltGr;
330 symbols[Group1]= [ ISO_Next_Group ],
335 // Left Ctrl key toggles group
336 partial modifier_keys
337 xkb_symbols "lctrl_toggle" {
338 virtual_modifiers AltGr;
340 symbols[Group1]= [ ISO_Next_Group ],
345 // Right Ctrl key toggles group
346 partial modifier_keys
347 xkb_symbols "rctrl_toggle" {
348 virtual_modifiers AltGr;
350 symbols[Group1]= [ ISO_Next_Group ],
355 // using the group(alt_caps_toggle) map, pressing:
356 // Alt+Caps Lock toggles group
357 // Caps Lock toggles caps lock
358 partial modifier_keys
359 xkb_symbols "alt_caps_toggle" {
361 type="PC_ALT_LEVEL2",
362 symbols[Group1]= [ Caps_Lock, ISO_Next_Group]
366 partial hidden modifier_keys
368 key <I219> { [ ISO_Next_Group, ISO_Prev_Group ] };
371 partial modifier_keys
372 xkb_symbols "alt_space_toggle" {
374 type[Group1]="PC_ALT_LEVEL2",
375 symbols[Group1]= [ space, ISO_Next_Group ]
379 // using the group(sclk_toggle) map, pressing the Scroll Lock key
381 partial modifier_keys
382 xkb_symbols "sclk_toggle" {
383 virtual_modifiers AltGr;
386 symbols[Group1] = [ ISO_Next_Group ]