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(shift_caps_toggle) map, pressing:
124 // Shift+Caps Lock toggles group
125 partial modifier_keys
126 xkb_symbols "shift_caps_toggle" {
127 key <CAPS> { [ Caps_Lock, ISO_Next_Group ] };
130 // using the group(shift_caps_switch) map, pressing:
131 // Caps Lock selects the first group
132 // Shift+Caps Lock selects the last group
133 partial modifier_keys
134 xkb_symbols "shift_caps_switch" {
135 key <CAPS> { [ ISO_First_Group, ISO_Last_Group ] };
138 // using the group(win_menu_switch) map, pressing:
139 // LWIN selects the first group
140 // RWIN or MENU selects the last group
141 partial modifier_keys
142 xkb_symbols "win_menu_switch" {
143 virtual_modifiers AltGr;
146 symbols[Group1] = [ ISO_First_Group ]
150 symbols[Group1] = [ ISO_Last_Group ]
154 symbols[Group1] = [ ISO_Last_Group ]
158 // using the group(ctrl_alt_toggle) map, pressing:
159 // Control_L+Alt_L locks the previous group
160 // Control_R+Alt_R locks the next group
161 // If you have two groups and group wrap is enabled, the effect is
162 // indistinguishable.
163 partial modifier_keys
164 xkb_symbols "ctrl_alt_toggle" {
165 virtual_modifiers Alt;
167 type[Group1]="PC_CONTROL_LEVEL2",
168 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
172 type[Group1]="PC_CONTROL_LEVEL2",
173 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
177 type[Group1]="PC_ALT_LEVEL2",
178 symbols[Group1]= [ Control_L, ISO_Prev_Group ]
181 type[Group1]="PC_ALT_LEVEL2",
182 symbols[Group1]= [ Control_R, ISO_Next_Group ]
186 // using the group(alt_shift_toggle) map, pressing:
187 // Shift_L+Alt_L locks the previous group
188 // Shift_R+Alt_R locks the next group
189 // If you have two groups and group wrap is enabled, the effect is
190 // indistinguishable.
191 partial modifier_keys
192 xkb_symbols "alt_shift_toggle" {
193 virtual_modifiers Alt;
195 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
199 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
203 type[Group1]="PC_ALT_LEVEL2",
204 symbols[Group1]= [ Shift_L, ISO_Prev_Group ]
207 type[Group1]="PC_ALT_LEVEL2",
208 symbols[Group1]= [ Shift_R, ISO_Next_Group ]
212 // using the group(menu_toggle) map, pressing:
213 // Menu key toggles groups
214 // Shift+Menu acts as Menu
215 partial modifier_keys
216 xkb_symbols "menu_toggle" {
217 key <MENU> { [ ISO_Next_Group, Menu ] };
220 // using the group(lwin_toggle) map, pressing the left Windows' logo key
221 // toggles groups. If you use this map, you would declare you keyboard
222 // as pc101 or pc102 instead of pc104 or pc105.
223 partial modifier_keys
224 xkb_symbols "lwin_toggle" {
225 virtual_modifiers AltGr;
228 symbols[Group1] = [ ISO_Next_Group ]
232 // using the group(rwin_toggle) map, pressing the right Windows' logo key
233 // toggles groups. If you use this map, you would declare you keyboard
234 // as pc101 or pc102 instead of pc104 or pc105.
235 partial modifier_keys
236 xkb_symbols "rwin_toggle" {
237 virtual_modifiers AltGr;
240 symbols[Group1] = [ ISO_Next_Group ]
244 // Both Ctrls pressed together toggle group
245 partial modifier_keys
246 xkb_symbols "ctrls_toggle" {
247 virtual_modifiers LControl, RControl;
249 type[Group1]="PC_RCONTROL_LEVEL2",
250 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
251 virtualMods= LControl
254 type[Group1]="PC_LCONTROL_LEVEL2",
255 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
256 virtualMods= RControl
260 // Both Alts pressed together toggle group
261 partial modifier_keys
262 xkb_symbols "alts_toggle" {
263 virtual_modifiers LAlt, RAlt;
265 type[Group1]="PC_RALT_LEVEL2",
266 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
270 type[Group1]="PC_LALT_LEVEL2",
271 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
276 // Left Shift key toggles group
277 partial modifier_keys
278 xkb_symbols "lshift_toggle" {
279 virtual_modifiers AltGr;
281 symbols[Group1]= [ ISO_Next_Group ],
286 // Right Shift key toggles group
287 partial modifier_keys
288 xkb_symbols "rshift_toggle" {
289 virtual_modifiers AltGr;
291 symbols[Group1]= [ ISO_Next_Group ],
296 // Left Alt key toggles group
297 partial modifier_keys
298 xkb_symbols "lalt_toggle" {
299 virtual_modifiers AltGr;
301 symbols[Group1]= [ ISO_Next_Group ],
306 // Left Ctrl key toggles group
307 partial modifier_keys
308 xkb_symbols "lctrl_toggle" {
309 virtual_modifiers AltGr;
311 symbols[Group1]= [ ISO_Next_Group ],
316 // Right Ctrl key toggles group
317 partial modifier_keys
318 xkb_symbols "rctrl_toggle" {
319 virtual_modifiers AltGr;
321 symbols[Group1]= [ ISO_Next_Group ],
326 // using the group(alt_caps_toggle) map, pressing:
327 // Alt+Caps Lock toggles group
328 // Caps Lock toggles caps lock
329 partial modifier_keys
330 xkb_symbols "alt_caps_toggle" {
332 type="PC_ALT_LEVEL2",
333 symbols[Group1]= [ Caps_Lock, ISO_Next_Group]
337 partial hidden modifier_keys
339 key <I219> { [ ISO_Next_Group, ISO_Prev_Group ] };
342 partial modifier_keys
343 xkb_symbols "alt_space_toggle" {
345 type[Group1]="PC_ALT_LEVEL2",
346 symbols[Group1]= [ space, ISO_Next_Group ]
350 // using the group(sclk_toggle) map, pressing the Scroll Lock key
352 partial modifier_keys
353 xkb_symbols "sclk_toggle" {
354 virtual_modifiers AltGr;
357 symbols[Group1] = [ ISO_Next_Group ]