ctrl revision 0412cded
1// eliminate the caps lock key completely (replace with control) 2partial modifier_keys 3xkb_symbols "nocaps" { 4 replace key <CAPS> { [ Control_L, Control_L ] }; 5 modifier_map Control { <CAPS>, <LCTL> }; 6}; 7 8// replace left control with Meta 9xkb_symbols "lctrl_meta" { 10 replace key <LCTL> { [ Meta_L ] }; 11}; 12 13// swap the caps lock key with the left control key 14partial modifier_keys 15xkb_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. 23partial modifier_keys 24xkb_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. 32partial modifier_keys 33xkb_symbols "aa_ctrl" { 34 replace key <AA00> { [ Control_L ] }; 35 replace key <AC00> { [ Caps_Lock ] }; 36}; 37 38// Right Ctrl works as Right Alt 39partial modifier_keys 40xkb_symbols "rctrl_ralt" { 41 key <RCTL> { symbols[Group1]= [ Alt_R ] }; 42}; 43 44// Menu works as Right Ctrl 45partial modifier_keys 46xkb_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 52partial modifier_keys 53xkb_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