Debian Codegraph @

test/data/symbols/level5

raw
1 // These partial variants assign ISO_Level5_Shift to various XKB keycodes
2 // so that the fifth shift level can be reached.
3
4 // The right Ctrl key (while pressed) chooses the fifth shift level.
5 partial modifier_keys
6 xkb_symbols "rctrl_switch" {
7 key <RCTL> {
8 type[Group1]="ONE_LEVEL",
9 symbols[Group1] = [ ISO_Level5_Shift ]
10 };
11 include "level5(modifier_mapping)"
12 };
13
14 // The Less/Greater key (while pressed) chooses the fifth shift level.
15 partial modifier_keys
16 xkb_symbols "lsgt_switch" {
17 key <LSGT> {
18 type[Group1]="ONE_LEVEL",
19 symbols[Group1] = [ ISO_Level5_Shift ]
20 };
21 include "level5(modifier_mapping)"
22 };
23
24 // The right Alt key (while pressed) chooses the fifth shift level.
25 partial modifier_keys
26 xkb_symbols "ralt_switch" {
27 key <RALT> {
28 type[Group1]="ONE_LEVEL",
29 symbols[Group1] = [ ISO_Level5_Shift ]
30 };
31 include "level5(modifier_mapping)"
32 };
33
34 // The CapsLock key (while pressed) chooses the fifth shift level.
35 partial modifier_keys
36 xkb_symbols "caps_switch" {
37 key <CAPS> {
38 type[Group1]="ONE_LEVEL",
39 symbols[Group1] = [ ISO_Level5_Shift ]
40 };
41 include "level5(modifier_mapping)"
42 };
43
44 // Ensure a mapping to a real modifier for LevelFive.
45 partial modifier_keys
46 xkb_symbols "modifier_mapping" {
47 replace key <MDSW> {
48 type[Group1] = "ONE_LEVEL",
49 symbols[Group1] = [ ISO_Level5_Shift ]
50 };
51 modifier_map Mod3 { <MDSW> };
52 };
53
54
55 // This adds the definitions needed to create a level5-lock behaviour, using
56 // the real modifier NumLock as a lock indicator.
57 // See also: types/level5 : EIGHT_LEVEL_LEVEL_FIVE_LOCK
58 // See also: compat/level5(level5_lock)
59 partial modifier_keys
60 xkb_symbols "lock" {
61 virtual_modifiers NumLock;
62 key.type[Group1] = "ONE_LEVEL";
63 include "level5(modifier_mapping)"
64 replace key <HYPR> {
65 vmods = NumLock,
66 symbols[Group1] = [ NoSymbol ],
67 actions[Group1] = [ SetMods(modifiers=NumLock) ]
68 };
69 modifier_map Mod2 { <HYPR> };
70 };
71
72 // The following modifier keys are used to switch to the third shift level
73 // and to set a corresponding lock, implemented as NumLock.
74
75 partial modifier_keys
76 xkb_symbols "lsgt_switch_lock" {
77 include "level5(lock)"
78 key <LSGT> {
79 type[Group1] = "EIGHT_LEVEL",
80 symbols[Group1] = [ ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift,
81 ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock ]
82 };
83 };
84
85 partial modifier_keys
86 xkb_symbols "lwin_switch_lock" {
87 include "level5(lock)"
88 key <LWIN> {
89 type[Group1] = "EIGHT_LEVEL",
90 symbols[Group1] = [ ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift,
91 ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock ]
92 };
93 };
94
95 partial modifier_keys
96 xkb_symbols "ralt_switch_lock" {
97 include "level5(lock)"
98 key <RALT> {
99 type[Group1] = "EIGHT_LEVEL",
100 symbols[Group1] = [ ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift,
101 ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock ]
102 };
103 };
104
105 partial modifier_keys
106 xkb_symbols "rwin_switch_lock" {
107 include "level5(lock)"
108 key <RWIN> {
109 type[Group1] = "EIGHT_LEVEL",
110 symbols[Group1] = [ ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift,
111 ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock ]
112 };
113 };
114
115 partial modifier_keys
116 xkb_symbols "lsgt_switch_lock_cancel" {
117 include "level5(lock)"
118 key <LSGT> {
119 type[Group1] = "EIGHT_LEVEL_LEVEL_FIVE_LOCK",
120 symbols[Group1] = [ ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift,
121 ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock ]
122 };
123 };
124
125 partial modifier_keys
126 xkb_symbols "lwin_switch_lock_cancel" {
127 include "level5(lock)"
128 key <LWIN> {
129 type[Group1] = "EIGHT_LEVEL_LEVEL_FIVE_LOCK",
130 symbols[Group1] = [ ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift,
131 ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock ]
132 };
133 };
134
135 partial modifier_keys
136 xkb_symbols "ralt_switch_lock_cancel" {
137 include "level5(lock)"
138 key <RALT> {
139 type[Group1] = "EIGHT_LEVEL_LEVEL_FIVE_LOCK",
140 symbols[Group1] = [ ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift,
141 ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock ]
142 };
143 };
144
145 partial modifier_keys
146 xkb_symbols "rwin_switch_lock_cancel" {
147 include "level5(lock)"
148 key <RWIN> {
149 type[Group1] = "EIGHT_LEVEL_LEVEL_FIVE_LOCK",
150 symbols[Group1] = [ ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift,
151 ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock ]
152 };
153 };