1 // using the group(switch) map, the right alt key temporarily chooses
2 // the second keyboard group (until it is released).
7 symbols[Group1]= [ Mode_switch, Multi_key ],
12 // using the group(lswitch) map, the left alt key temporarily chooses
13 // the second keyboard group (until it is released).
16 xkb_symbols "lswitch" {
18 symbols[Group1]= [ Mode_switch, Multi_key ],
24 // using the group(win_switch) map, both Windows'logo keys temporarily
25 // choose the second keyboard group (until release). If you use this
26 // map, you would declare you keyboard as pc101 or pc102 instead of
29 xkb_symbols "win_switch" {
30 include "group(lwin_switch)"
31 include "group(rwin_switch)"
34 // using the group(lwin_switch) map, the left Windows' logo key
35 // temporarily chooses the second keyboard group (until it is
36 // released). If you use this map, you would declare you keyboard as
37 // pc101 or pc102 instead of pc104 or pc105.
39 xkb_symbols "lwin_switch" {
41 symbols[Group1] = [ Mode_switch, Multi_key ],
46 // using the group(rwin_switch) map, the right Windows' logo key
47 // temporarily chooses the second keyboard group (until it is
48 // released). If you use this map, you would declare you keyboard as
49 // pc101 or pc102 instead of pc104 or pc105.
51 xkb_symbols "rwin_switch" {
53 symbols[Group1] = [ Mode_switch, Multi_key ],
58 // Right Ctrl key temporary chooses the second keyboard group.
59 // Needed mainly for Canadian keyboard
61 xkb_symbols "rctrl_switch" {
63 symbols[Group1]= [ Mode_switch ]
67 // using the group(toggle) map, pressing the right alt key switches to
68 // the next sequential group (until the next explicit group change).
70 xkb_symbols "toggle" {
71 virtual_modifiers AltGr;
73 symbols[Group1]= [ ISO_Next_Group ],
78 // using the group(shifts_toggle) map, pressing both shift keys together
79 // locks the next or previous sequential keyboard group
80 // (depending on which shift is pressed first - right or left,
83 xkb_symbols "shifts_toggle" {
84 key <LFSH> { [ Shift_L, ISO_Prev_Group ] };
85 key <RTSH> { [ Shift_R, ISO_Next_Group ] };
88 // using the group(ctrl_shift_toggle) map, pressing:
89 // Control_L+Shift_L locks the previous group
90 // Control_R+Shift_R locks the next group
91 // If you have two groups and group wrap is enabled, the effect is
94 xkb_symbols "ctrl_shift_toggle" {
96 type[Group1]="PC_CONTROL_LEVEL2",
97 symbols[Group1]= [ Shift_L, ISO_Prev_Group ]
100 type[Group1]="PC_CONTROL_LEVEL2",
101 symbols[Group1]= [ Shift_R, ISO_Next_Group ]
103 key <LCTL> { [ Control_L, ISO_Prev_Group ] };
104 key <RCTL> { [ Control_R, ISO_Next_Group ] };
107 // using the group(lctrl_lshift_toggle) map, pressing:
108 // Control_L+Shift_L locks the next group
109 // If you have two groups and group wrap is enabled, the effect is
110 // indistinguishable.
111 partial modifier_keys
112 xkb_symbols "lctrl_lshift_toggle" {
114 type[Group1]="PC_CONTROL_LEVEL2",
115 symbols[Group1]= [ Shift_L, ISO_Next_Group ]
117 key <LCTL> { [ Control_L, ISO_Next_Group ] };
120 // using the group(rctrl_rshift_toggle) map, pressing:
121 // Control_R+Shift_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 "rctrl_rshift_toggle" {
127 type[Group1]="PC_CONTROL_LEVEL2",
128 symbols[Group1]= [ Shift_R, ISO_Next_Group ]
130 key <RCTL> { [ Control_R, ISO_Next_Group ] };
133 // using the group(shift_caps_toggle) map, pressing:
134 // Shift+Caps Lock toggles group
135 partial modifier_keys
136 xkb_symbols "shift_caps_toggle" {
137 key <CAPS> { [ Caps_Lock, ISO_Next_Group ] };
140 // using the group(shift_caps_switch) map, pressing:
141 // Caps Lock selects the first group
142 // Shift+Caps Lock selects the last group
143 partial modifier_keys
144 xkb_symbols "shift_caps_switch" {
145 key <CAPS> { [ ISO_First_Group, ISO_Last_Group ] };
148 // using the group(win_menu_switch) map, pressing:
149 // LWIN selects the first group
150 // RWIN or MENU selects the last group
151 partial modifier_keys
152 xkb_symbols "win_menu_switch" {
153 virtual_modifiers AltGr;
156 symbols[Group1] = [ ISO_First_Group ]
160 symbols[Group1] = [ ISO_Last_Group ]
164 symbols[Group1] = [ ISO_Last_Group ]
168 // using the group(lctrl_rctrl_switch) map, pressing:
169 // Left Control selects the first group
170 // Right Control selects the last group
171 partial modifier_keys
172 xkb_symbols "lctrl_rctrl_switch" {
173 virtual_modifiers AltGr;
176 symbols[Group1] = [ ISO_First_Group ]
180 symbols[Group1] = [ ISO_Last_Group ]
184 // using the group(ctrl_alt_toggle) map, pressing:
185 // Control_L+Alt_L locks the previous group
186 // Control_R+Alt_R locks the next group
187 // If you have two groups and group wrap is enabled, the effect is
188 // indistinguishable.
189 partial modifier_keys
190 xkb_symbols "ctrl_alt_toggle" {
191 virtual_modifiers Alt;
193 type[Group1]="PC_CONTROL_LEVEL2",
194 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
198 type[Group1]="PC_CONTROL_LEVEL2",
199 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
203 type[Group1]="PC_ALT_LEVEL2",
204 symbols[Group1]= [ Control_L, ISO_Prev_Group ]
207 type[Group1]="PC_ALT_LEVEL2",
208 symbols[Group1]= [ Control_R, ISO_Next_Group ]
212 // using the group(alt_shift_toggle) map, pressing:
213 // Shift_L+Alt_L locks the previous group
214 // Shift_R+Alt_R locks the next group
215 // If you have two groups and group wrap is enabled, the effect is
216 // indistinguishable.
217 partial modifier_keys
218 xkb_symbols "alt_shift_toggle" {
219 virtual_modifiers Alt;
221 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
225 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
229 type[Group1]="PC_ALT_LEVEL2",
230 symbols[Group1]= [ Shift_L, ISO_Prev_Group ]
233 type[Group1]="PC_ALT_LEVEL2",
234 symbols[Group1]= [ Shift_R, ISO_Next_Group ]
238 // using the group(menu_toggle) map, pressing:
239 // Menu key toggles groups
240 // Shift+Menu acts as Menu
241 partial modifier_keys
242 xkb_symbols "menu_toggle" {
243 key <MENU> { [ ISO_Next_Group, Menu ] };
246 // using the group(lwin_toggle) map, pressing the left Windows' logo key
247 // toggles groups. If you use this map, you would declare you keyboard
248 // as pc101 or pc102 instead of pc104 or pc105.
249 partial modifier_keys
250 xkb_symbols "lwin_toggle" {
251 virtual_modifiers AltGr;
254 symbols[Group1] = [ ISO_Next_Group ]
258 // using the group(rwin_toggle) map, pressing the right Windows' logo key
259 // toggles groups. If you use this map, you would declare you keyboard
260 // as pc101 or pc102 instead of pc104 or pc105.
261 partial modifier_keys
262 xkb_symbols "rwin_toggle" {
263 virtual_modifiers AltGr;
266 symbols[Group1] = [ ISO_Next_Group ]
270 // Both Ctrls pressed together toggle group
271 partial modifier_keys
272 xkb_symbols "ctrls_toggle" {
273 virtual_modifiers LControl, RControl;
275 type[Group1]="PC_RCONTROL_LEVEL2",
276 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
277 virtualMods= LControl
280 type[Group1]="PC_LCONTROL_LEVEL2",
281 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
282 virtualMods= RControl
286 // Both Alts pressed together toggle group
287 partial modifier_keys
288 xkb_symbols "alts_toggle" {
289 virtual_modifiers LAlt, RAlt;
291 type[Group1]="PC_RALT_LEVEL2",
292 symbols[Group1]= [ NoSymbol, ISO_Prev_Group ],
296 type[Group1]="PC_LALT_LEVEL2",
297 symbols[Group1]= [ NoSymbol, ISO_Next_Group ],
302 // Left Shift key toggles group
303 partial modifier_keys
304 xkb_symbols "lshift_toggle" {
305 virtual_modifiers AltGr;
307 symbols[Group1]= [ ISO_Next_Group ],
312 // Right Shift key toggles group
313 partial modifier_keys
314 xkb_symbols "rshift_toggle" {
315 virtual_modifiers AltGr;
317 symbols[Group1]= [ ISO_Next_Group ],
322 // Left Alt key toggles group
323 partial modifier_keys
324 xkb_symbols "lalt_toggle" {
325 virtual_modifiers AltGr;
327 symbols[Group1]= [ ISO_Next_Group ],
332 // Left Ctrl key toggles group
333 partial modifier_keys
334 xkb_symbols "lctrl_toggle" {
335 virtual_modifiers AltGr;
337 symbols[Group1]= [ ISO_Next_Group ],
342 // Right Ctrl key toggles group
343 partial modifier_keys
344 xkb_symbols "rctrl_toggle" {
345 virtual_modifiers AltGr;
347 symbols[Group1]= [ ISO_Next_Group ],
352 // using the group(alt_caps_toggle) map, pressing:
353 // Alt+Caps Lock toggles group
354 // Caps Lock toggles caps lock
355 partial modifier_keys
356 xkb_symbols "alt_caps_toggle" {
358 type="PC_ALT_LEVEL2",
359 symbols[Group1]= [ Caps_Lock, ISO_Next_Group]
363 partial hidden modifier_keys
365 key <I219> { [ ISO_Next_Group, ISO_Prev_Group ] };
368 partial modifier_keys
369 xkb_symbols "alt_space_toggle" {
371 type[Group1]="PC_ALT_LEVEL2",
372 symbols[Group1]= [ space, ISO_Next_Group ]
376 // using the group(sclk_toggle) map, pressing the Scroll Lock key
378 partial modifier_keys
379 xkb_symbols "sclk_toggle" {
380 virtual_modifiers AltGr;
383 symbols[Group1] = [ ISO_Next_Group ]
387 // Control_L+Win_L locks the first group (presumably Lat).
388 // Control_R+Menu locks the second group (presumably Rus).
389 partial modifier_keys
390 xkb_symbols "lctrl_lwin_rctrl_menu" {
392 type[ Group1 ] = "PC_CONTROL_LEVEL2",
393 symbols[ Group1 ] = [ Super_L, ISO_First_Group ]
396 type[ Group1 ] = "PC_CONTROL_LEVEL2",
397 symbols[ Group1 ] = [ Menu, ISO_Last_Group ]
399 }; // lctrl_lwin_rctrl_menu