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