ctrl revision 1.1.1.11 1 1.1.1.10 mrg // Eliminate CapsLock, making it another Ctrl.
2 1.1.1.10 mrg partial modifier_keys
3 1.1 mrg xkb_symbols "nocaps" {
4 1.1.1.10 mrg replace key <CAPS> { [ Control_L, Control_L ] };
5 1.1 mrg modifier_map Control { <CAPS>, <LCTL> };
6 1.1 mrg };
7 1.1 mrg
8 1.1.1.10 mrg // Make the left Ctrl key a left Meta.
9 1.1.1.7 mrg xkb_symbols "lctrl_meta" {
10 1.1.1.10 mrg replace key <LCTL> { [ Meta_L ] };
11 1.1.1.7 mrg };
12 1.1.1.7 mrg
13 1.1.1.10 mrg // Swap the functions of the CapsLock key and the left Ctrl key.
14 1.1.1.10 mrg partial modifier_keys
15 1.1 mrg xkb_symbols "swapcaps" {
16 1.1.1.10 mrg replace key <CAPS> { [ Control_L ] };
17 1.1.1.10 mrg replace key <LCTL> { [ Caps_Lock ] };
18 1.1 mrg };
19 1.1 mrg
20 1.1.1.10 mrg // Move Ctrl to the leftmost key on the middle row and CapsLock to the
21 1.1.1.10 mrg // leftmost key on the bottom row. Only works if the geometry or keycodes
22 1.1 mrg // file has defined appropriate aliases for the keys in question.
23 1.1.1.10 mrg partial modifier_keys
24 1.1.1.9 mrg xkb_symbols "ac_ctrl" {
25 1.1.1.10 mrg replace key <AC00> { [ Control_L ] };
26 1.1.1.10 mrg replace key <AA00> { [ Caps_Lock ] };
27 1.1 mrg };
28 1.1 mrg
29 1.1.1.10 mrg // Move Ctrl to the leftmost key on the bottom row and CapsLock to the
30 1.1.1.10 mrg // leftmost key on the middle row. Only works if the geometry or keycodes
31 1.1 mrg // file has defined appropriate aliases for the keys in question.
32 1.1.1.10 mrg partial modifier_keys
33 1.1.1.9 mrg xkb_symbols "aa_ctrl" {
34 1.1.1.10 mrg replace key <AA00> { [ Control_L ] };
35 1.1.1.10 mrg replace key <AC00> { [ Caps_Lock ] };
36 1.1 mrg };
37 1.1 mrg
38 1.1.1.10 mrg // Right Ctrl key functions as another right Alt.
39 1.1.1.10 mrg partial modifier_keys
40 1.1.1.9 mrg xkb_symbols "rctrl_ralt" {
41 1.1.1.10 mrg key <RCTL> { symbols[Group1]= [ Alt_R ] };
42 1.1 mrg };
43 1.1.1.6 mrg
44 1.1.1.10 mrg // Menu key functions as another right Ctrl.
45 1.1.1.6 mrg partial modifier_keys
46 1.1.1.9 mrg xkb_symbols "menu_rctrl" {
47 1.1.1.10 mrg replace key <MENU> { [ Control_R, Control_R ] };
48 1.1.1.10 mrg modifier_map Control { Control_L, <MENU> };
49 1.1.1.6 mrg };
50 1.1.1.9 mrg
51 1.1.1.10 mrg // Right Alt key functions as another right Ctrl.
52 1.1.1.10 mrg partial modifier_keys
53 1.1.1.9 mrg xkb_symbols "ralt_rctrl" {
54 1.1.1.10 mrg replace key <RALT> { type[Group1] = "TWO_LEVEL",
55 1.1.1.9 mrg symbols[Group1] = [ Control_R, Control_R ] };
56 1.1.1.10 mrg modifier_map Control { <RALT> };
57 1.1.1.10 mrg };
58 1.1.1.10 mrg
59 1.1.1.10 mrg // Swap the functions of the left Alt key and the left Ctrl key.
60 1.1.1.10 mrg partial modifier_keys
61 1.1.1.10 mrg xkb_symbols "swap_lalt_lctl" {
62 1.1.1.10 mrg replace key <LALT> { [ Control_L, Control_L ] };
63 1.1.1.10 mrg replace key <LCTL> { [ Alt_L, Meta_L ] };
64 1.1.1.10 mrg };
65 1.1.1.10 mrg
66 1.1.1.10 mrg // Swap the functions of the left Win key and the left Ctrl key.
67 1.1.1.10 mrg partial modifier_keys
68 1.1.1.10 mrg xkb_symbols "swap_lwin_lctl" {
69 1.1.1.10 mrg replace key <LWIN> { [ Control_L ] };
70 1.1.1.10 mrg replace key <LCTL> { [ Super_L ] };
71 1.1.1.10 mrg };
72 1.1.1.10 mrg
73 1.1.1.11 mrg // Swap the functions of the right Win key and the right Ctrl key.
74 1.1.1.11 mrg partial modifier_keys
75 1.1.1.11 mrg xkb_symbols "swap_rwin_rctl" {
76 1.1.1.11 mrg replace key <RWIN> { [ Control_R ] };
77 1.1.1.11 mrg replace key <RCTL> { [ Super_R ] };
78 1.1.1.11 mrg };
79 1.1.1.11 mrg
80 1.1.1.10 mrg // Map Ctrl to the left Alt key, Alt to the left Win key,
81 1.1.1.10 mrg // and Super to the left Ctrl key.
82 1.1.1.10 mrg partial modifier_keys
83 1.1.1.10 mrg xkb_symbols "swap_lalt_lctl_lwin" {
84 1.1.1.10 mrg replace key <LALT> { [ Control_L, Control_L ] };
85 1.1.1.10 mrg replace key <LWIN> { [ Alt_L, Meta_L ] };
86 1.1.1.10 mrg replace key <LCTL> { [ Super_L ] };
87 1.1.1.9 mrg };
88