Debian Codegraph @

symbols/level5

raw
1 // These variants assign ISO_Level5_Shift to various keys
2 // so that levels 5 to 8 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> {[ ISO_Level5_Shift ], type[group1]="ONE_LEVEL" };
8 };
9
10 // The Less/Greater key (while pressed) chooses the fifth shift level.
11 partial modifier_keys
12 xkb_symbols "lsgt_switch" {
13 key <LSGT> {[ ISO_Level5_Shift ], type[group1]="ONE_LEVEL" };
14 };
15
16 // The right Alt key (while pressed) chooses the fifth shift level.
17 partial modifier_keys
18 xkb_symbols "ralt_switch" {
19 key <RALT> {[ ISO_Level5_Shift ], type[group1]="ONE_LEVEL" };
20 };
21
22 // The CapsLock key (while pressed) chooses the fifth shift level.
23 partial modifier_keys
24 xkb_symbols "caps_switch" {
25 key <CAPS> {[ ISO_Level5_Shift ], type[group1]="ONE_LEVEL" };
26 };
27
28 // The Menu key (while pressed) chooses the fifth shift level.
29 partial modifier_keys
30 xkb_symbols "menu_switch" {
31 key <MENU> {[ ISO_Level5_Shift ], type[group1]="ONE_LEVEL" };
32 };
33
34
35 // This adds the definitions needed to create a level5-locking behaviour,
36 // using the virtual modifier NumLock (mapped to Mod2) as lock indicator.
37 // See also types/level5 (EIGHT_LEVEL_WITH_LEVEL5_LOCK) and compat/level5 (level5_lock).
38 partial modifier_keys
39 xkb_symbols "lock" {
40 virtual_modifiers NumLock;
41
42 replace key <HYPR> {[ NoSymbol ], type[group1] = "ONE_LEVEL", virtualMods = NumLock,
43 actions[group1] = [ SetMods(modifiers=NumLock) ]};
44 modifier_map Mod2 { <HYPR> };
45 };
46
47 // Below are eight variants for assigning extra keys for choosing/locking the fifth level.
48
49 partial modifier_keys
50 xkb_symbols "lsgt_switch_lock" {
51 include "level5(lock)"
52 key <LSGT> {[ ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift,
53 ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock ],
54 type[group1] = "EIGHT_LEVEL" };
55 };
56
57 partial modifier_keys
58 xkb_symbols "lwin_switch_lock" {
59 include "level5(lock)"
60 key <LWIN> {[ ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift,
61 ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock ],
62 type[group1] = "EIGHT_LEVEL" };
63 };
64
65 partial modifier_keys
66 xkb_symbols "ralt_switch_lock" {
67 include "level5(lock)"
68 key <RALT> {[ ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift,
69 ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock ],
70 type[group1] = "EIGHT_LEVEL" };
71 };
72
73 partial modifier_keys
74 xkb_symbols "rwin_switch_lock" {
75 include "level5(lock)"
76 key <RWIN> {[ ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift,
77 ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock ],
78 type[group1] = "EIGHT_LEVEL" };
79 };
80
81 partial modifier_keys
82 xkb_symbols "lsgt_switch_lock_cancel" {
83 include "level5(lock)"
84 key <LSGT> {[ ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift,
85 ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock ],
86 type[group1] = "EIGHT_LEVEL_WITH_LEVEL5_LOCK" };
87 };
88
89 partial modifier_keys
90 xkb_symbols "lwin_switch_lock_cancel" {
91 include "level5(lock)"
92 key <LWIN> {[ ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift,
93 ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock ],
94 type[group1] = "EIGHT_LEVEL_WITH_LEVEL5_LOCK" };
95 };
96
97 partial modifier_keys
98 xkb_symbols "ralt_switch_lock_cancel" {
99 include "level5(lock)"
100 key <RALT> {[ 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 type[group1] = "EIGHT_LEVEL_WITH_LEVEL5_LOCK" };
103 };
104
105 partial modifier_keys
106 xkb_symbols "rwin_switch_lock_cancel" {
107 include "level5(lock)"
108 key <RWIN> {[ ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift,
109 ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock ],
110 type[group1] = "EIGHT_LEVEL_WITH_LEVEL5_LOCK" };
111 };