I was able to follow these instructions to create my custom xkb symbols in /usr/share/X11/xkb/symbols/
and add them to /usr/share/X11/xkb/rules/evdev.xml
and /usr/share/X11/xkb/rules/evdev.lst
.
It works, kind of. In xterm, I can put setxkbmap mycustomkeyboard
and then I can use my keyboard successfully in any application.
Also, in System Settings, Region & Language, Input Sources, I can add my custom keyboard to the list.
HOWEVER, even after doing this, the keyboard switching icon at the top only shows other installed keyboards, not my custom keyboard. Furthermore, Super+Space still switches between all other installed keyboards but not my custom keyboard.
I also tried the following, but it didn't help:
sudo dpkg-reconfigure xkb-data
systemctl restart keyboard-setup
What have I missed? Why doesn't my custom keyboard doesn't show in the keyboard switching options?