1 // eliminate the caps lock key completely (replace with control)
4 replace key <CAPS> { [ Control_L, Control_L ] };
5 modifier_map Control { <CAPS>, <LCTL> };
8 // replace left control with Meta
9 xkb_symbols "lctrl_meta" {
10 replace key <LCTL> { [ Meta_L ] };
13 // swap the caps lock key with the left control key
15 xkb_symbols "swapcaps" {
16 replace key <CAPS> { [ Control_L ] };
17 replace key <LCTL> { [ Caps_Lock ] };
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.
24 xkb_symbols "ac_ctrl" {
25 replace key <AC00> { [ Control_L ] };
26 replace key <AA00> { [ Caps_Lock ] };
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.
33 xkb_symbols "aa_ctrl" {
34 replace key <AA00> { [ Control_L ] };
35 replace key <AC00> { [ Caps_Lock ] };
38 // Right Ctrl works as Right Alt
40 xkb_symbols "rctrl_ralt" {
41 key <RCTL> { symbols[Group1]= [ Alt_R ] };
44 // Menu works as Right Ctrl
46 xkb_symbols "menu_rctrl" {
47 replace key <MENU> { [ Control_R, Control_R ] };
48 modifier_map Control { Control_L, <MENU> };
51 // right alt functions as another ctrl key
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> };