// These partial variants assign ISO_Level3_Shift to various XKB keycodes
// so that the third shift level can be reached.
-// Ensure a mapping to a real modifier for LevelThree.
-partial modifier_keys
-xkb_symbols "modifier_mapping" {
- replace key <LVL3> {
- type[Group1] = "ONE_LEVEL";
- symbols[Group1] = [ ISO_Level3_Shift ]
- };
- modifier_map Mod5 { <LVL3> };
-};
-
// The default behaviour:
// the right Alt key (AltGr) chooses the third symbol engraved on a key.
default partial modifier_keys
include "level3(modifier_mapping)"
};
+// Ensure a mapping to a real modifier for LevelThree.
+partial modifier_keys
+xkb_symbols "modifier_mapping" {
+ replace key <LVL3> {
+ type[Group1] = "ONE_LEVEL";
+ symbols[Group1] = [ ISO_Level3_Shift ]
+ };
+ modifier_map Mod5 { <LVL3> };
+};
+
// The right Alt key never chooses the third level.
// This option attempts to undo the effect of a layout's inclusion of
// 'ralt_switch'. You may want to also select another level3 option
// These partial variants assign ISO_Level5_Shift to various XKB keycodes
// so that the fifth shift level can be reached.
-// Ensure a mapping to a real modifier for LevelFive.
-partial modifier_keys
-xkb_symbols "modifier_mapping" {
- replace key <MDSW> {
- type[Group1] = "ONE_LEVEL";
- symbols[Group1] = [ ISO_Level5_Shift ]
- };
- modifier_map Mod3 { <MDSW> };
-};
-
// The right Ctrl key (while pressed) chooses the fifth shift level.
partial modifier_keys
xkb_symbols "rctrl_switch" {
include "level5(modifier_mapping)"
};
+// Ensure a mapping to a real modifier for LevelFive.
+partial modifier_keys
+xkb_symbols "modifier_mapping" {
+ replace key <MDSW> {
+ type[Group1] = "ONE_LEVEL";
+ symbols[Group1] = [ ISO_Level5_Shift ]
+ };
+ modifier_map Mod3 { <MDSW> };
+};
+
// This adds the definitions needed to create a level5-lock behaviour, using
// the real modifier NumLock as a lock indicator.