1 // $Xorg: group,v 1.3 2000/08/17 19:54:43 cpqbld Exp $
2 // using the group(switch) map, the right alt key temporarily chooses
3 // the second keyboard group (until it is released).
5 // $XFree86: xc/programs/xkbcomp/symbols/group,v 3.9 2003/12/30 13:26:25 pascal Exp $
9 symbols[Group1]= [ Mode_switch, Multi_key ],
14 // using the group(lswitch) map, the left alt key temporarily chooses
15 // the second keyboard group (until it is released).
18 xkb_symbols "lswitch" {
20 symbols[Group1]= [ Mode_switch, Multi_key ],
26 // using the group(win_switch) map, both Windows'logo keys temporarily
27 // choose the second keyboard group (until release). If you use this
28 // map, you would declare you keyboard as pc101 or pc102 instead of
31 xkb_symbols "win_switch" {
33 symbols[Group1] = [ Mode_switch, Multi_key ],
37 symbols[Group1] = [ Mode_switch, Multi_key ],
42 // using the group(lwin_switch) map, the left Windows' logo key
43 // temporarily chooses the second keyboard group (until it is
44 // released). If you use this map, you would declare you keyboard as
45 // pc101 or pc102 instead of pc104 or pc105.
47 xkb_symbols "lwin_switch" {
49 symbols[Group1] = [ Mode_switch, Multi_key ],
54 // using the group(rwin_switch) map, the right Windows' logo key
55 // temporarily chooses the second keyboard group (until it is
56 // released). If you use this map, you would declare you keyboard as
57 // pc101 or pc102 instead of pc104 or pc105.
59 xkb_symbols "rwin_switch" {
61 symbols[Group1] = [ Mode_switch, Multi_key ],
66 // Right Ctrl key temporary chooses the second keyboard group.
67 // Needed mainly for Canadian keyboard
69 xkb_symbols "rctrl_switch" {
71 symbols[Group1]= [ Mode_switch ]
75 // using the group(toggle) map, pressing the right alt key switches to
76 // the next sequential group (until the next explicit group change).
78 xkb_symbols "toggle" {
79 virtual_modifiers AltGr;
81 symbols[Group1]= [ ISO_Next_Group ],
86 // using the group(shift_toggle) map, pressing both shift keys together
87 // locks the next sequential keyboard group.
89 xkb_symbols "shift_toggle" {
90 key <LFSH> { [ Shift_L, ISO_Prev_Group ] };
91 key <RTSH> { [ Shift_R, ISO_Next_Group ] };
94 // using the group(ctrl_shift_toggle) map, pressing:
95 // Control_L+Shift_L locks the previous group
96 // Control_R+Shift_R locks the next group
97 // If you have two groups and group wrap is enabled, the effect is
100 xkb_symbols "ctrl_shift_toggle" {
103 symbols[Group1]= [ Shift_L, ISO_Prev_Group ]
107 symbols[Group1]= [ Shift_R, ISO_Next_Group ]
109 key <LCTL> { [ Control_L, ISO_Prev_Group ] };
110 key <RCTL> { [ Control_R, ISO_Next_Group ] };
113 // using the group(caps_toggle) map, pressing:
114 // Caps Lock toggles groups
115 // Shift+Caps Lock toggles caps lock
116 partial modifier_keys
117 xkb_symbols "caps_toggle" {
118 include "capslock(grouplock)"
121 // using the group(shift_caps_toggle) map, pressing:
122 // Shift+Caps Lock toggles group
123 partial modifier_keys
124 xkb_symbols "shift_caps_toggle" {
125 key <CAPS> { [ Caps_Lock, ISO_Next_Group ] };
128 // using the group(ctrl_alt_toggle) map, pressing:
129 // Control_L+Alt_L locks the previous group
130 // Control_R+Alt_R locks the next group
131 // If you have two groups and group wrap is enabled, the effect is
132 // indistinguishable.
133 partial modifier_keys
134 xkb_symbols "ctrl_alt_toggle" {
135 virtual_modifiers Alt;
138 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
143 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
148 symbols[Group1]= [ Control_L, ISO_Prev_Group ]
152 symbols[Group1]= [ Control_R, ISO_Next_Group ]
156 // using the group(alt_shift_toggle) map, pressing:
157 // Shift_L+Alt_L locks the previous group
158 // Shift_R+Alt_R locks the next group
159 // If you have two groups and group wrap is enabled, the effect is
160 // indistinguishable.
161 partial modifier_keys
162 xkb_symbols "alt_shift_toggle" {
163 virtual_modifiers Alt;
165 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
169 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
174 symbols[Group1]= [ Shift_L, ISO_Prev_Group ]
178 symbols[Group1]= [ Shift_R, ISO_Next_Group ]
182 // using the group(menu_toggle) map, pressing:
183 // Menu key toggles groups
184 // Shift+Menu acts as Menu
185 partial modifier_keys
186 xkb_symbols "menu_toggle" {
187 key <MENU> { [ ISO_Next_Group, Menu ] };
190 // using the group(lwin_toggle) map, pressing the left Windows' logo key
191 // toggles groups. If you use this map, you would declare you keyboard
192 // as pc101 or pc102 instead of pc104 or pc105.
193 partial modifier_keys
194 xkb_symbols "lwin_toggle" {
195 virtual_modifiers AltGr;
198 symbols[Group1] = [ ISO_Next_Group ]
202 // using the group(rwin_toggle) map, pressing the right Windows' logo key
203 // toggles groups. If you use this map, you would declare you keyboard
204 // as pc101 or pc102 instead of pc104 or pc105.
205 partial modifier_keys
206 xkb_symbols "rwin_toggle" {
207 virtual_modifiers AltGr;
210 symbols[Group1] = [ ISO_Next_Group ]
214 // Both Ctrls pressed together toggle group
215 partial modifier_keys
216 xkb_symbols "ctrls_toggle" {
217 virtual_modifiers AltGr;
220 symbols[Group1]= [ NoSymbol, ISO_Next_Group ]
224 symbols[Group1]= [ NoSymbol, ISO_Next_Group ]
228 // Both Alts pressed together toggle group
229 partial modifier_keys
230 xkb_symbols "alts_toggle" {
231 virtual_modifiers AltGr;
234 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
239 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
244 // Left Shift key toggles group
245 partial modifier_keys
246 xkb_symbols "lshift_toggle" {
247 virtual_modifiers AltGr;
249 symbols[Group1]= [ ISO_Next_Group ],
254 // Right Shift key toggles group
255 partial modifier_keys
256 xkb_symbols "rshift_toggle" {
257 virtual_modifiers AltGr;
259 symbols[Group1]= [ ISO_Next_Group ],
264 // Left Alt key toggles group
265 partial modifier_keys
266 xkb_symbols "lalt_toggle" {
267 virtual_modifiers AltGr;
269 symbols[Group1]= [ ISO_Next_Group ],
274 // Left Ctrl key toggles group
275 partial modifier_keys
276 xkb_symbols "lctrl_toggle" {
277 virtual_modifiers AltGr;
279 symbols[Group1]= [ ISO_Next_Group ],
284 // Right Ctrl key toggles group
285 partial modifier_keys
286 xkb_symbols "rctrl_toggle" {
287 virtual_modifiers AltGr;
289 symbols[Group1]= [ ISO_Next_Group ],