1default hidden partial modifier_keys 2xkb_symbols "capslock" { 3 replace key <CAPS> { [ Caps_Lock ] }; 4 modifier_map Lock { Caps_Lock }; 5}; 6 7hidden partial modifier_keys 8xkb_symbols "shiftlock" { 9 replace key <CAPS> { [ Shift_Lock ] }; 10 modifier_map Shift { Shift_Lock }; 11}; 12 13hidden partial modifier_keys 14xkb_symbols "grouplock" { 15 replace key <CAPS> { [ ISO_Next_Group, Caps_Lock ] }; 16}; 17 18hidden partial modifier_keys 19xkb_symbols "groupshift" { 20 key <CAPS> { 21 type[Group1] = "PC_ALT_LEVEL2", 22 [ Mode_switch, Caps_Lock ] 23 }; 24}; 25 26hidden partial modifier_keys 27xkb_symbols "swapescape" { 28 key <CAPS> { [ Escape ] }; 29 key <ESC> { [ Caps_Lock ] }; 30}; 31 32hidden partial modifier_keys 33xkb_symbols "escape" { 34 key <CAPS> { [ Escape ] }; 35}; 36 37hidden partial modifier_keys 38xkb_symbols "escape_shifted_capslock" { 39 key <CAPS> { 40 type[Group1] = "TWO_LEVEL", 41 symbols[Group1] = [ Escape, Caps_Lock ], 42 actions[Group1] = [ NoAction(), LockMods(modifiers = Lock) ] 43 }; 44}; 45 46hidden partial modifier_keys 47xkb_symbols "backspace" { 48 key <CAPS> { [ BackSpace ] }; 49}; 50 51hidden partial modifier_keys 52xkb_symbols "super" { 53 key <CAPS> { [ Super_L ] }; 54 modifier_map Mod4 { <CAPS> }; 55}; 56 57hidden partial modifier_keys 58xkb_symbols "hyper" { 59 key <CAPS> { [ Hyper_L ] }; 60 modifier_map Mod4 { <CAPS> }; 61}; 62 63hidden partial modifier_keys 64xkb_symbols "menu" { 65 key <CAPS> { [ Menu ] }; 66}; 67 68hidden partial modifier_keys 69xkb_symbols "numlock" { 70 key <CAPS> { [ Num_Lock ] }; 71}; 72 73// This changes the <CAPS> key to become a Control modifier, 74// but it will still produce the Caps_Lock keysym. 75hidden partial modifier_keys 76xkb_symbols "ctrl_modifier" { 77 replace key <CAPS> { 78 type[Group1] = "ONE_LEVEL", 79 symbols[Group1] = [ Caps_Lock ], 80 actions[Group1] = [ SetMods(modifiers=Control) ] 81 }; 82 modifier_map Control { <CAPS> }; 83}; 84 85hidden partial modifier_keys 86xkb_symbols "none" { 87 key <CAPS> { [ VoidSymbol ] }; 88}; 89