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(shift_caps_switch) map, pressing:
145 // Caps Lock selects the first group
146 // Shift+Caps Lock selects the last group
147 partial modifier_keys
148 xkb_symbols "shift_caps_switch" {
149 key <CAPS> { [ ISO_First_Group, ISO_Last_Group ] };
152 // using the group(ctrl_alt_toggle) map, pressing:
153 // Control_L+Alt_L locks the previous group
154 // Control_R+Alt_R locks the next group
155 // If you have two groups and group wrap is enabled, the effect is
156 // indistinguishable.
157 partial modifier_keys
158 xkb_symbols "ctrl_alt_toggle" {
159 virtual_modifiers Alt;
161 type[Group1]="PC_CONTROL_LEVEL2",
162 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
166 type[Group1]="PC_CONTROL_LEVEL2",
167 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
171 type[Group1]="PC_ALT_LEVEL2",
172 symbols[Group1]= [ Control_L, ISO_Prev_Group ]
175 type[Group1]="PC_ALT_LEVEL2",
176 symbols[Group1]= [ Control_R, ISO_Next_Group ]
180 // using the group(alt_shift_toggle) map, pressing:
181 // Shift_L+Alt_L locks the previous group
182 // Shift_R+Alt_R locks the next group
183 // If you have two groups and group wrap is enabled, the effect is
184 // indistinguishable.
185 partial modifier_keys
186 xkb_symbols "alt_shift_toggle" {
187 virtual_modifiers Alt;
189 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
193 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
197 type[Group1]="PC_ALT_LEVEL2",
198 symbols[Group1]= [ Shift_L, ISO_Prev_Group ]
201 type[Group1]="PC_ALT_LEVEL2",
202 symbols[Group1]= [ Shift_R, ISO_Next_Group ]
206 // using the group(menu_toggle) map, pressing:
207 // Menu key toggles groups
208 // Shift+Menu acts as Menu
209 partial modifier_keys
210 xkb_symbols "menu_toggle" {
211 key <MENU> { [ ISO_Next_Group, Menu ] };
214 // using the group(lwin_toggle) map, pressing the left Windows' logo key
215 // toggles groups. If you use this map, you would declare you keyboard
216 // as pc101 or pc102 instead of pc104 or pc105.
217 partial modifier_keys
218 xkb_symbols "lwin_toggle" {
219 virtual_modifiers AltGr;
222 symbols[Group1] = [ ISO_Next_Group ]
226 // using the group(rwin_toggle) map, pressing the right Windows' logo key
227 // toggles groups. If you use this map, you would declare you keyboard
228 // as pc101 or pc102 instead of pc104 or pc105.
229 partial modifier_keys
230 xkb_symbols "rwin_toggle" {
231 virtual_modifiers AltGr;
234 symbols[Group1] = [ ISO_Next_Group ]
238 // Both Ctrls pressed together toggle group
239 partial modifier_keys
240 xkb_symbols "ctrls_toggle" {
241 virtual_modifiers LControl, RControl;
243 type[Group1]="PC_RCONTROL_LEVEL2",
244 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
245 virtualMods= LControl
248 type[Group1]="PC_LCONTROL_LEVEL2",
249 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
250 virtualMods= RControl
254 // Both Alts pressed together toggle group
255 partial modifier_keys
256 xkb_symbols "alts_toggle" {
257 virtual_modifiers LAlt, RAlt;
259 type[Group1]="PC_RALT_LEVEL2",
260 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
264 type[Group1]="PC_LALT_LEVEL2",
265 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
270 // Left Shift key toggles group
271 partial modifier_keys
272 xkb_symbols "lshift_toggle" {
273 virtual_modifiers AltGr;
275 symbols[Group1]= [ ISO_Next_Group ],
280 // Right Shift key toggles group
281 partial modifier_keys
282 xkb_symbols "rshift_toggle" {
283 virtual_modifiers AltGr;
285 symbols[Group1]= [ ISO_Next_Group ],
290 // Left Alt key toggles group
291 partial modifier_keys
292 xkb_symbols "lalt_toggle" {
293 virtual_modifiers AltGr;
295 symbols[Group1]= [ ISO_Next_Group ],
300 // Left Ctrl key toggles group
301 partial modifier_keys
302 xkb_symbols "lctrl_toggle" {
303 virtual_modifiers AltGr;
305 symbols[Group1]= [ ISO_Next_Group ],
310 // Right Ctrl key toggles group
311 partial modifier_keys
312 xkb_symbols "rctrl_toggle" {
313 virtual_modifiers AltGr;
315 symbols[Group1]= [ ISO_Next_Group ],
320 // using the group(alt_caps_toggle) map, pressing:
321 // Alt+Caps Lock toggles group
322 // Caps Lock toggles caps lock
323 partial modifier_keys
324 xkb_symbols "alt_caps_toggle" {
326 type="PC_ALT_LEVEL2",
327 symbols[Group1]= [ Caps_Lock, ISO_Next_Group]
331 partial hidden modifier_keys
333 key <I219> { [ ISO_Next_Group, ISO_Prev_Group ] };