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