I just discovered that I couldn't add more than 4 layouts for my keyboard. Googling revealed that it was a universal limit (at least for GNU/Linux) and the only way(s) to get around it was to use some hackish way with scripts. Is there really a technical reason behind this? If yes, what is it?
Ubuntu – Why is there a 4-layouts limit for keyboards
keyboardkeyboard-layout
Best Answer
Quoting Peter Hutterer (Red Hat employee working on X.Org):
Why we don't have a hack above this layer - I don't know... this must be the lamest limitation ever. :D