I have no problem getting four symbols per key using the right alt key, but I am running into failure when trying to get the level 5 switch working, as well as enabling a key to toggle between two separate layouts. I may not be understanding the concepts correctly, but these were what I interpreted to be as two different ways of getting more than 4 symbols per key, when reading this article on the Arch Wiki.
This is an sample layout excerpt of what I am using, annotated with what works and what does not work. These are random symbols for the D key, not necessarily my end goal, but just placeholders for 16 symbols between two toggled layouts:
// /usr/share/X11/xkb/symbols/ocd
partial modifier_keys alphanumeric_keys
xkb_symbols "ocd" {
include "us(basic)"
// do I actually need this?
name[Group1] = "English (ocd)";
key.type[Group1] = "ONE_LEVEL";
// hide extra European keyboard key from GNOME graphical layout depiction
replace key <LSGT> {[ Shift_L ]}; // this works
// try to toggle between layouts for one key
replace key <RWIN> {[ ISO_Next_Group ]}; // does NOT work
key.type[Group1] = "EIGHT_LEVEL_SEMIALPHABETIC";
// First row
key <AE07> {[ 7, ampersand, paragraph, section ]}; // ¶ §
// Third row (2 layouts to toggle, w/ 8 symbols in layout 1)
key <AC03> {
[ d, D, grave, asciitilde,
exclam, at, numbersign, dollar
],
[ Greek_delta, Greek_DELTA, percent, asciicircum,
ampersand, asterisk, parenleft, parenright
]
};
// do these additional includes have to be at the END?
include "level3(ralt_switch)" // this works
include "level5(rctrl_switch)" // does NOT work
};
Is four symbols the most I can hope for, or am I on the right track?