ctrl revision 1.1.1.9 1 // eliminate the caps lock key completely (replace with control)
2 partial modifier_keys
3 xkb_symbols "nocaps" {
4 replace key <CAPS> { [ Control_L, Control_L ] };
5 modifier_map Control { <CAPS>, <LCTL> };
6 };
7
8 // replace left control with Meta
9 xkb_symbols "lctrl_meta" {
10 replace key <LCTL> { [ Meta_L ] };
11 };
12
13 // swap the caps lock key with the left control key
14 partial modifier_keys
15 xkb_symbols "swapcaps" {
16 replace key <CAPS> { [ Control_L ] };
17 replace key <LCTL> { [ Caps_Lock ] };
18 };
19
20 // moves the control key to the middle row and the caps lock
21 // to the bottom row. Only works if the geometry or keycodes
22 // file has defined appropriate aliases for the keys in question.
23 partial modifier_keys
24 xkb_symbols "ac_ctrl" {
25 replace key <AC00> { [ Control_L ] };
26 replace key <AA00> { [ Caps_Lock ] };
27 };
28
29 // Moves the control key to the bottom row and the caps lock
30 // to the middle row. Only works if the geometry or keycodes
31 // file has defined appropriate aliases for the keys in question.
32 partial modifier_keys
33 xkb_symbols "aa_ctrl" {
34 replace key <AA00> { [ Control_L ] };
35 replace key <AC00> { [ Caps_Lock ] };
36 };
37
38 // Right Ctrl works as Right Alt
39 partial modifier_keys
40 xkb_symbols "rctrl_ralt" {
41 key <RCTL> { symbols[Group1]= [ Alt_R ] };
42 };
43
44 // Menu works as Right Ctrl
45 partial modifier_keys
46 xkb_symbols "menu_rctrl" {
47 replace key <MENU> { [ Control_R, Control_R ] };
48 modifier_map Control { Control_L, <MENU> };
49 };
50
51 // right alt functions as another ctrl key
52 partial modifier_keys
53 xkb_symbols "ralt_rctrl" {
54 replace key <RALT> { type[Group1] = "TWO_LEVEL",
55 symbols[Group1] = [ Control_R, Control_R ] };
56 modifier_map Control { <RALT> };
57 };
58