• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 "swapescape" {
20    key <CAPS> { [ Escape ] };
21    key <ESC>  { [ Caps_Lock ] };
22};
23
24hidden partial modifier_keys
25xkb_symbols "groupshift" {
26    key <CAPS> {
27        type[Group1] = "PC_ALT_LEVEL2",
28        [ Mode_switch, Caps_Lock ]
29    };
30};
31
32hidden partial modifier_keys
33xkb_symbols "escape" {
34    key <CAPS> { [ Escape ] };
35};
36
37hidden partial modifier_keys
38xkb_symbols "backspace" {
39    key <CAPS> { [ BackSpace ] };
40};
41
42hidden partial modifier_keys
43xkb_symbols "super" {
44    key <CAPS> { [ Super_L ] };
45    modifier_map Mod4 { <CAPS> };
46};
47
48hidden partial modifier_keys
49xkb_symbols "hyper" {
50    key <CAPS> { [ Hyper_L ] };
51    modifier_map Mod4 { <CAPS> };
52};
53
54hidden partial modifier_keys
55xkb_symbols "none" {
56    key <CAPS> { [ VoidSymbol ] };
57};
58
59hidden partial modifier_keys
60xkb_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.
66hidden partial modifier_keys
67xkb_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