lv5:lsgt_switch_lock = +level5(lsgt_switch_lock)
lv5:ralt_switch_lock = +level5(ralt_switch_lock)
lv5:lwin_switch_lock = +level5(lwin_switch_lock)
lv5:rwin_switch_lock = +level5(rwin_switch_lock)
lv5:caps_switch_lock = +level5(caps_switch_lock)
lv5:lctl_switch_lock = +level5(lctl_switch_lock)
These are the switch rules defined in xkb/rules/evdev and that's what you have to choose between by way of lv5 switches from the GUI menu I think. In xkb/symbols/level5 you see some more that could be included in the options component. But as you can see, there's no rule for LAlt. So you can't get that without making one. And that's a bit technical.
You could, however, do a low-down dirty hack by piggybacking on an existing switch! Find the code in xkb/symbols/level5 that goes:
// The CapsLock key (while pressed) chooses the fifth shift level.
partial modifier_keys
xkb_symbols "caps_switch" {
key <CAPS> {
type[Group1]="ONE_LEVEL",
symbols[Group1] = [ ISO_Level5_Shift ]
};
include "level5(modifier_mapping)"
};
Then change <CAPS> to <LALT> and it might just work... I hope. You'd choose "lv5:caps_switch" but it'd actually affect the LAlt key. I hope. ^_^
[edit: Hack confirmed! Well, that's nice! ^_^]
Last edited by DreymaR (18-Oct-2018 08:32:10)