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 // using the group(toggle) map, pressing the right alt key switches to
67 // the next sequential group (until the next explicit group change).
69 xkb_symbols "toggle" {
70 virtual_modifiers AltGr;
72 symbols[Group1]= [ ISO_Next_Group ],
77 // using the group(shift_toggle) map, pressing both shift keys together
78 // locks the next sequential keyboard group.
80 xkb_symbols "shift_toggle" {
81 key <LFSH> { [ Shift_L, ISO_Prev_Group ] };
82 key <RTSH> { [ Shift_R, ISO_Next_Group ] };
85 // using the group(ctrl_shift_toggle) map, pressing:
86 // Control_L+Shift_L locks the previous group
87 // Control_R+Shift_R locks the next group
88 // If you have two groups and group wrap is enabled, the effect is
91 xkb_symbols "ctrl_shift_toggle" {
94 symbols[Group1]= [ Shift_L, ISO_Prev_Group ]
98 symbols[Group1]= [ Shift_R, ISO_Next_Group ]
100 key <LCTL> { [ Control_L, ISO_Prev_Group ] };
101 key <RCTL> { [ Control_R, ISO_Next_Group ] };
104 // using the group(caps_toggle) map, pressing:
105 // Caps Lock toggles groups
106 // Shift+Caps Lock toggles caps lock
107 partial modifier_keys
108 xkb_symbols "caps_toggle" {
109 key <CAPS> { [ ISO_Next_Group, Caps_Lock ] };
112 // using the group(shift_caps_toggle) map, pressing:
113 // Shift+Caps Lock toggles group
114 partial modifier_keys
115 xkb_symbols "shift_caps_toggle" {
116 key <CAPS> { [ Caps_Lock, ISO_Next_Group ] };
119 // using the group(ctrl_alt_toggle) map, pressing:
120 // Control_L+Alt_L locks the previous group
121 // Control_R+Alt_R locks the next group
122 // If you have two groups and group wrap is enabled, the effect is
123 // indistinguishable.
124 partial modifier_keys
125 xkb_symbols "ctrl_alt_toggle" {
126 virtual_modifiers Alt;
129 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
134 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
139 symbols[Group1]= [ Control_L, ISO_Prev_Group ]
143 symbols[Group1]= [ Control_R, ISO_Next_Group ]
147 // using the group(alt_shift_toggle) map, pressing:
148 // Shift_L+Alt_L locks the previous group
149 // Shift_R+Alt_R locks the next group
150 // If you have two groups and group wrap is enabled, the effect is
151 // indistinguishable.
152 partial modifier_keys
153 xkb_symbols "alt_shift_toggle" {
154 virtual_modifiers Alt;
156 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
160 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
165 symbols[Group1]= [ Shift_L, ISO_Prev_Group ]
169 symbols[Group1]= [ Shift_R, ISO_Next_Group ]
173 // using the group(menu_toggle) map, pressing:
174 // Menu key toggles groups
175 // Shift+Menu acts as Menu
176 partial modifier_keys
177 xkb_symbols "menu_toggle" {
178 key <MENU> { [ ISO_Next_Group, Menu ] };
181 // using the group(lwin_toggle) map, pressing the left Windows' logo key
182 // toggles groups. If you use this map, you would declare you keyboard
183 // as pc101 or pc102 instead of pc104 or pc105.
184 partial modifier_keys
185 xkb_symbols "lwin_toggle" {
186 virtual_modifiers AltGr;
189 symbols[Group1] = [ ISO_Next_Group ]
193 // using the group(rwin_toggle) map, pressing the right Windows' logo key
194 // toggles groups. If you use this map, you would declare you keyboard
195 // as pc101 or pc102 instead of pc104 or pc105.
196 partial modifier_keys
197 xkb_symbols "rwin_toggle" {
198 virtual_modifiers AltGr;
201 symbols[Group1] = [ ISO_Next_Group ]
205 // Both Ctrls pressed together toggle group
206 partial modifier_keys
207 xkb_symbols "ctrls_toggle" {
208 virtual_modifiers AltGr;
211 symbols[Group1]= [ NoSymbol, ISO_Next_Group ]
215 symbols[Group1]= [ NoSymbol, ISO_Next_Group ]
219 // Both Alts pressed together toggle group
220 partial modifier_keys
221 xkb_symbols "alts_toggle" {
222 virtual_modifiers AltGr;
225 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
230 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
235 // Left Shift key toggles group
236 partial modifier_keys
237 xkb_symbols "lshift_toggle" {
238 virtual_modifiers AltGr;
240 symbols[Group1]= [ ISO_Next_Group ],
245 // Right Shift key toggles group
246 partial modifier_keys
247 xkb_symbols "rshift_toggle" {
248 virtual_modifiers AltGr;
250 symbols[Group1]= [ ISO_Next_Group ],
255 // Left Alt key toggles group
256 partial modifier_keys
257 xkb_symbols "lalt_toggle" {
258 virtual_modifiers AltGr;
260 symbols[Group1]= [ ISO_Next_Group ],
265 // Left Ctrl key toggles group
266 partial modifier_keys
267 xkb_symbols "lctrl_toggle" {
268 virtual_modifiers AltGr;
270 symbols[Group1]= [ ISO_Next_Group ],
275 // Right Ctrl key toggles group
276 partial modifier_keys
277 xkb_symbols "rctrl_toggle" {
278 virtual_modifiers AltGr;
280 symbols[Group1]= [ ISO_Next_Group ],