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" {
34 symbols[Group1] = [ Mode_switch, Multi_key ],
38 symbols[Group1] = [ Mode_switch, Multi_key ],
43 // using the group(lwin_switch) map, the left Windows' logo key
44 // temporarily chooses the second keyboard group (until it is
45 // released). If you use this map, you would declare you keyboard as
46 // pc101 or pc102 instead of pc104 or pc105.
48 xkb_symbols "lwin_switch" {
50 symbols[Group1] = [ Mode_switch, Multi_key ],
55 // using the group(rwin_switch) map, the right Windows' logo key
56 // temporarily chooses the second keyboard group (until it is
57 // released). If you use this map, you would declare you keyboard as
58 // pc101 or pc102 instead of pc104 or pc105.
60 xkb_symbols "rwin_switch" {
62 symbols[Group1] = [ Mode_switch, Multi_key ],
67 // Right Ctrl key temporary chooses the second keyboard group.
68 // Needed mainly for Canadian keyboard
70 xkb_symbols "rctrl_switch" {
72 symbols[Group1]= [ Mode_switch ]
76 // using the group(toggle) map, pressing the right alt key switches to
77 // the next sequential group (until the next explicit group change).
79 xkb_symbols "toggle" {
80 virtual_modifiers AltGr;
82 symbols[Group1]= [ ISO_Next_Group ],
87 // using the group(shifts_toggle) map, pressing both shift keys together
88 // locks the next or previous sequential keyboard group
89 // (depending on which shift is pressed first - right or left,
92 xkb_symbols "shifts_toggle" {
93 key <LFSH> { [ Shift_L, ISO_Prev_Group ] };
94 key <RTSH> { [ Shift_R, ISO_Next_Group ] };
97 // using the group(ctrl_shift_toggle) map, pressing:
98 // Control_L+Shift_L locks the previous group
99 // Control_R+Shift_R locks the next group
100 // If you have two groups and group wrap is enabled, the effect is
101 // indistinguishable.
102 partial modifier_keys
103 xkb_symbols "ctrl_shift_toggle" {
105 type[Group1]="PC_CONTROL_LEVEL2",
106 symbols[Group1]= [ Shift_L, ISO_Prev_Group ]
109 type[Group1]="PC_CONTROL_LEVEL2",
110 symbols[Group1]= [ Shift_R, ISO_Next_Group ]
112 key <LCTL> { [ Control_L, ISO_Prev_Group ] };
113 key <RCTL> { [ Control_R, ISO_Next_Group ] };
116 // using the group(lctrl_lshift_toggle) map, pressing:
117 // Control_L+Shift_L locks the next group
118 // If you have two groups and group wrap is enabled, the effect is
119 // indistinguishable.
120 partial modifier_keys
121 xkb_symbols "lctrl_lshift_toggle" {
123 type[Group1]="PC_CONTROL_LEVEL2",
124 symbols[Group1]= [ Shift_L, ISO_Next_Group ]
126 key <LCTL> { [ Control_L, ISO_Next_Group ] };
129 // using the group(caps_toggle) map, pressing:
130 // Caps Lock toggles groups
131 // Shift+Caps Lock toggles caps lock
132 partial modifier_keys
133 xkb_symbols "caps_toggle" {
134 include "capslock(grouplock)"
137 // using the group(shift_caps_toggle) map, pressing:
138 // Shift+Caps Lock toggles group
139 partial modifier_keys
140 xkb_symbols "shift_caps_toggle" {
141 key <CAPS> { [ Caps_Lock, ISO_Next_Group ] };
144 // using the group(ctrl_alt_toggle) map, pressing:
145 // Control_L+Alt_L locks the previous group
146 // Control_R+Alt_R locks the next group
147 // If you have two groups and group wrap is enabled, the effect is
148 // indistinguishable.
149 partial modifier_keys
150 xkb_symbols "ctrl_alt_toggle" {
151 virtual_modifiers Alt;
153 type[Group1]="PC_CONTROL_LEVEL2",
154 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
158 type[Group1]="PC_CONTROL_LEVEL2",
159 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
163 type[Group1]="PC_ALT_LEVEL2",
164 symbols[Group1]= [ Control_L, ISO_Prev_Group ]
167 type[Group1]="PC_ALT_LEVEL2",
168 symbols[Group1]= [ Control_R, ISO_Next_Group ]
172 // using the group(alt_shift_toggle) map, pressing:
173 // Shift_L+Alt_L locks the previous group
174 // Shift_R+Alt_R locks the next group
175 // If you have two groups and group wrap is enabled, the effect is
176 // indistinguishable.
177 partial modifier_keys
178 xkb_symbols "alt_shift_toggle" {
179 virtual_modifiers Alt;
181 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
185 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
189 type[Group1]="PC_ALT_LEVEL2",
190 symbols[Group1]= [ Shift_L, ISO_Prev_Group ]
193 type[Group1]="PC_ALT_LEVEL2",
194 symbols[Group1]= [ Shift_R, ISO_Next_Group ]
198 // using the group(menu_toggle) map, pressing:
199 // Menu key toggles groups
200 // Shift+Menu acts as Menu
201 partial modifier_keys
202 xkb_symbols "menu_toggle" {
203 key <MENU> { [ ISO_Next_Group, Menu ] };
206 // using the group(lwin_toggle) map, pressing the left Windows' logo key
207 // toggles groups. If you use this map, you would declare you keyboard
208 // as pc101 or pc102 instead of pc104 or pc105.
209 partial modifier_keys
210 xkb_symbols "lwin_toggle" {
211 virtual_modifiers AltGr;
214 symbols[Group1] = [ ISO_Next_Group ]
218 // using the group(rwin_toggle) map, pressing the right Windows' logo key
219 // toggles groups. If you use this map, you would declare you keyboard
220 // as pc101 or pc102 instead of pc104 or pc105.
221 partial modifier_keys
222 xkb_symbols "rwin_toggle" {
223 virtual_modifiers AltGr;
226 symbols[Group1] = [ ISO_Next_Group ]
230 // Both Ctrls pressed together toggle group
231 partial modifier_keys
232 xkb_symbols "ctrls_toggle" {
233 virtual_modifiers LControl, RControl;
235 type[Group1]="PC_RCONTROL_LEVEL2",
236 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
237 virtualMods= LControl
240 type[Group1]="PC_LCONTROL_LEVEL2",
241 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
242 virtualMods= RControl
246 // Both Alts pressed together toggle group
247 partial modifier_keys
248 xkb_symbols "alts_toggle" {
249 virtual_modifiers LAlt, RAlt;
251 type[Group1]="PC_RALT_LEVEL2",
252 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
256 type[Group1]="PC_LALT_LEVEL2",
257 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
262 // Left Shift key toggles group
263 partial modifier_keys
264 xkb_symbols "lshift_toggle" {
265 virtual_modifiers AltGr;
267 symbols[Group1]= [ ISO_Next_Group ],
272 // Right Shift key toggles group
273 partial modifier_keys
274 xkb_symbols "rshift_toggle" {
275 virtual_modifiers AltGr;
277 symbols[Group1]= [ ISO_Next_Group ],
282 // Left Alt key toggles group
283 partial modifier_keys
284 xkb_symbols "lalt_toggle" {
285 virtual_modifiers AltGr;
287 symbols[Group1]= [ ISO_Next_Group ],
292 // Left Ctrl key toggles group
293 partial modifier_keys
294 xkb_symbols "lctrl_toggle" {
295 virtual_modifiers AltGr;
297 symbols[Group1]= [ ISO_Next_Group ],
302 // Right Ctrl key toggles group
303 partial modifier_keys
304 xkb_symbols "rctrl_toggle" {
305 virtual_modifiers AltGr;
307 symbols[Group1]= [ ISO_Next_Group ],
312 // using the group(alt_caps_toggle) map, pressing:
313 // Alt+Caps Lock toggles group
314 // Caps Lock toggles caps lock
315 partial modifier_keys
316 xkb_symbols "alt_caps_toggle" {
318 type="PC_ALT_LEVEL2",
319 symbols[Group1]= [ Caps_Lock, ISO_Next_Group]