1 1.1 mrg // eliminate the caps lock key completely (replace with control) 2 1.1 mrg partial modifier_keys 3 1.1 mrg xkb_symbols "nocaps" { 4 1.1.1.3 ghen 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.7 mrg // replace left control with Meta 9 1.1.1.7 mrg xkb_symbols "lctrl_meta" { 10 1.1.1.7 mrg replace key <LCTL> { [ Meta_L ] }; 11 1.1.1.7 mrg }; 12 1.1.1.7 mrg 13 1.1 mrg // swap the caps lock key with the left control key 14 1.1 mrg partial modifier_keys 15 1.1 mrg xkb_symbols "swapcaps" { 16 1.1.1.3 ghen replace key <CAPS> { [ Control_L ] }; 17 1.1.1.3 ghen replace key <LCTL> { [ Caps_Lock ] }; 18 1.1 mrg }; 19 1.1 mrg 20 1.1 mrg // moves the control key to the middle row and the caps lock 21 1.1 mrg // to 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 mrg partial modifier_keys 24 1.1.1.9 mrg xkb_symbols "ac_ctrl" { 25 1.1.1.3 ghen replace key <AC00> { [ Control_L ] }; 26 1.1.1.3 ghen replace key <AA00> { [ Caps_Lock ] }; 27 1.1 mrg }; 28 1.1 mrg 29 1.1 mrg // Moves the control key to the bottom row and the caps lock 30 1.1 mrg // to 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 mrg partial modifier_keys 33 1.1.1.9 mrg xkb_symbols "aa_ctrl" { 34 1.1.1.3 ghen replace key <AA00> { [ Control_L ] }; 35 1.1.1.3 ghen replace key <AC00> { [ Caps_Lock ] }; 36 1.1 mrg }; 37 1.1 mrg 38 1.1 mrg // Right Ctrl works as Right Alt 39 1.1 mrg partial modifier_keys 40 1.1.1.9 mrg xkb_symbols "rctrl_ralt" { 41 1.1 mrg key <RCTL> { symbols[Group1]= [ Alt_R ] }; 42 1.1 mrg }; 43 1.1.1.6 mrg 44 1.1.1.6 mrg // Menu works as 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.6 mrg replace key <MENU> { [ Control_R, Control_R ] }; 48 1.1.1.6 mrg modifier_map Control { Control_L, <MENU> }; 49 1.1.1.6 mrg }; 50 1.1.1.9 mrg 51 1.1.1.9 mrg // right alt functions as another ctrl key 52 1.1.1.9 mrg partial modifier_keys 53 1.1.1.9 mrg xkb_symbols "ralt_rctrl" { 54 1.1.1.9 mrg replace key <RALT> { type[Group1] = "TWO_LEVEL", 55 1.1.1.9 mrg symbols[Group1] = [ Control_R, Control_R ] }; 56 1.1.1.9 mrg modifier_map Control { <RALT> }; 57 1.1.1.9 mrg }; 58