Debian Codegraph @

test/data/symbols/level3

raw
1 // These partial variants assign ISO_Level3_Shift to various XKB keycodes
2 // so that the third shift level can be reached.
3
4 // The default behaviour:
5 // the right Alt key (AltGr) chooses the third symbol engraved on a key.
6 default partial modifier_keys
7 xkb_symbols "ralt_switch" {
8 key <RALT> {
9 type[Group1]="ONE_LEVEL",
10 symbols[Group1] = [ ISO_Level3_Shift ]
11 };
12 include "level3(modifier_mapping)"
13 };
14
15 partial modifier_keys
16 xkb_symbols "ralt_latch" {
17 key <RALT> {
18 type[Group1]="ONE_LEVEL",
19 symbols[Group1] = [ ISO_Level3_Latch ]
20 };
21 include "level3(modifier_mapping)"
22 };
23
24 // Ensure a mapping to a real modifier for LevelThree.
25 partial modifier_keys
26 xkb_symbols "modifier_mapping" {
27 replace key <LVL3> {
28 type[Group1] = "ONE_LEVEL",
29 symbols[Group1] = [ ISO_Level3_Shift ]
30 };
31 modifier_map Mod5 { <LVL3> };
32 };
33
34 // The right Alt key never chooses the third level.
35 // This option attempts to undo the effect of a layout's inclusion of
36 // 'ralt_switch'. You may want to also select another level3 option
37 // to map the level3 shift to some other key.
38 partial modifier_keys
39 xkb_symbols "ralt_alt" {
40 key <RALT> {
41 type[Group1]="TWO_LEVEL",
42 type[Group2]="TWO_LEVEL",
43 type[Group3]="TWO_LEVEL",
44 type[Group4]="TWO_LEVEL",
45 symbols[Group1] = [ Alt_R, Meta_R ],
46 symbols[Group2] = [ Alt_R, Meta_R ],
47 symbols[Group3] = [ Alt_R, Meta_R ],
48 symbols[Group4] = [ Alt_R, Meta_R ]
49 };
50 modifier_map Mod1 { <RALT> };
51 };
52
53 // The right Alt key (while pressed) chooses the third shift level,
54 // and Compose is mapped to its second level.
55 partial modifier_keys
56 xkb_symbols "ralt_switch_multikey" {
57 key <RALT> {
58 type[Group1]="TWO_LEVEL",
59 symbols[Group1] = [ ISO_Level3_Shift, Multi_key ]
60 };
61 include "level3(modifier_mapping)"
62 };
63
64 // A special case of the right-Alt switch -- for use with grp:alts_toggle.
65 hidden partial modifier_keys
66 xkb_symbols "ralt_switch_for_alts_toggle" {
67 virtual_modifiers LAlt, AltGr;
68 key <LALT> {
69 type[Group1]="PC_RALT_LEVEL2",
70 symbols[Group1] = [ Alt_L, ISO_Prev_Group, ISO_Prev_Group ],
71 virtualMods= LAlt
72 };
73 key <RALT> {
74 type[Group1]="PC_ALT_LEVEL2",
75 symbols[Group1] = [ ISO_Level3_Shift, ISO_Next_Group ],
76 virtualMods= AltGr
77 };
78 include "level3(modifier_mapping)"
79 };
80
81 // Either Alt key (while pressed) chooses the third shift level.
82 // (To be used mostly to imitate Mac OS functionality.)
83 partial modifier_keys
84 xkb_symbols "alt_switch" {
85 include "level3(lalt_switch)"
86 include "level3(ralt_switch)"
87 };
88
89 // The left Alt key (while pressed) chooses the third shift level.
90 partial modifier_keys
91 xkb_symbols "lalt_switch" {
92 key <LALT> {
93 type[Group1]="ONE_LEVEL",
94 symbols[Group1] = [ ISO_Level3_Shift ]
95 };
96 include "level3(modifier_mapping)"
97 };
98
99 // The right Ctrl key (while pressed) chooses the third shift level.
100 partial modifier_keys
101 xkb_symbols "switch" {
102 key <RCTL> {
103 type[Group1]="ONE_LEVEL",
104 symbols[Group1] = [ ISO_Level3_Shift ]
105 };
106 include "level3(modifier_mapping)"
107 };
108
109 // The Menu key (while pressed) chooses the third shift level.
110 partial modifier_keys
111 xkb_symbols "menu_switch" {
112 key <MENU> {
113 type[Group1]="ONE_LEVEL",
114 symbols[Group1] = [ ISO_Level3_Shift ]
115 };
116 include "level3(modifier_mapping)"
117 };
118
119 // Either Win key (while pressed) chooses the third shift level.
120 partial modifier_keys
121 xkb_symbols "win_switch" {
122 include "level3(lwin_switch)"
123 include "level3(rwin_switch)"
124 };
125
126 // The left Win key (while pressed) chooses the third shift level.
127 partial modifier_keys
128 xkb_symbols "lwin_switch" {
129 key <LWIN> {
130 type[Group1]="ONE_LEVEL",
131 symbols[Group1] = [ ISO_Level3_Shift ]
132 };
133 include "level3(modifier_mapping)"
134 };
135
136 // The right Win key (while pressed) chooses the third shift level.
137 // (When using this map, you should set your keyboard as pc101 or pc102
138 // instead of pc104 or pc105.)
139 partial modifier_keys
140 xkb_symbols "rwin_switch" {
141 key <RWIN> {
142 type[Group1]="ONE_LEVEL",
143 symbols[Group1] = [ ISO_Level3_Shift ]
144 };
145 include "level3(modifier_mapping)"
146 };
147
148 // The Enter key on the kepypad (while pressed) chooses the third shift level.
149 // (This is especially useful for Mac laptops which miss the right Alt key.)
150 partial modifier_keys
151 xkb_symbols "enter_switch" {
152 key <KPEN> {
153 type[Group1]="ONE_LEVEL",
154 symbols[Group1] = [ ISO_Level3_Shift ]
155 };
156 include "level3(modifier_mapping)"
157 };
158
159 // The CapsLock key (while pressed) chooses the third shift level.
160 partial modifier_keys
161 xkb_symbols "caps_switch" {
162 key <CAPS> {
163 type[Group1]="ONE_LEVEL",
164 symbols[Group1] = [ ISO_Level3_Shift ]
165 };
166 include "level3(modifier_mapping)"
167 };
168
169 // The Backslash key (while pressed) chooses the third shift level.
170 partial modifier_keys
171 xkb_symbols "bksl_switch" {
172 key <BKSL> {
173 type[Group1]="ONE_LEVEL",
174 symbols[Group1] = [ ISO_Level3_Shift ]
175 };
176 include "level3(modifier_mapping)"
177 };
178
179 // The Less/Greater key (while pressed) chooses the third shift level.
180 partial modifier_keys
181 xkb_symbols "lsgt_switch" {
182 key <LSGT> {
183 type[Group1]="ONE_LEVEL",
184 symbols[Group1] = [ ISO_Level3_Shift ]
185 };
186 include "level3(modifier_mapping)"
187 };
188
189 // The CapsLock key (while pressed) chooses the third shift level,
190 // and latches when pressed together with another third-level chooser.
191 partial modifier_keys
192 xkb_symbols "caps_switch_latch" {
193 key <CAPS> {
194 type[Group1]="THREE_LEVEL",
195 symbols[Group1] = [ ISO_Level3_Shift, ISO_Level3_Shift, ISO_Level3_Latch ]
196 };
197 include "level3(modifier_mapping)"
198 };
199
200 // The Backslash key (while pressed) chooses the third shift level,
201 // and latches when pressed together with another third-level chooser.
202 partial modifier_keys
203 xkb_symbols "bksl_switch_latch" {
204 key <BKSL> {
205 type[Group1]="THREE_LEVEL",
206 symbols[Group1] = [ ISO_Level3_Shift, ISO_Level3_Shift, ISO_Level3_Latch ]
207 };
208 include "level3(modifier_mapping)"
209 };
210
211 partial modifier_keys
212 xkb_symbols "bksl_latch_no_lock" {
213 virtual_modifiers LevelThree;
214 key <BKSL> {
215 type[Group1]="ONE_LEVEL",
216 symbols[Group1] = [ ISO_Level3_Latch ],
217 actions[Group1] = [ LatchMods(modifiers=LevelThree, !clearLocks, !latchToLock)]
218 };
219 };
220
221 // The Less/Greater key (while pressed) chooses the third shift level,
222 // and latches when pressed together with another third-level chooser.
223 partial modifier_keys
224 xkb_symbols "lsgt_switch_latch" {
225 key <LSGT> {
226 type[Group1]="THREE_LEVEL",
227 symbols[Group1] = [ ISO_Level3_Shift, ISO_Level3_Shift, ISO_Level3_Latch ]
228 };
229 include "level3(modifier_mapping)"
230 };
231
232 partial modifier_keys
233 xkb_symbols "lsgt_latch" {
234 key <LSGT> {
235 type[Group1]="ONE_LEVEL",
236 symbols[Group1] = [ ISO_Level3_Latch ]
237 };
238 };
239
240 // Number key 4 chooses third shift level when pressed in isolation.
241 partial modifier_keys
242 xkb_symbols "4_switch_isolated" {
243 override key <AE04> {
244 symbols[Group1] = [ ISO_Level3_Shift ]
245 };
246 include "level3(modifier_mapping)"
247 };
248
249 // Number key 9 chooses third shift level when pressed in isolation.
250 partial modifier_keys
251 xkb_symbols "9_switch_isolated" {
252 override key <AE09> {
253 symbols[Group1] = [ ISO_Level3_Shift ]
254 };
255 include "level3(modifier_mapping)"
256 };