You need
xterm*metaSendsEscape: true
in your ~/.Xdefaults
"xkb configuration is black magic in general and sheer luck in Ubuntu."
Wayland is a lose.
sudo raspi-config
Advanced Options menu, select the Wayland option โ disable it, and reboot.
$ sudo apt install gnome-tweak-tool
then use it to map caps lock to ctrl, and swap left-ctrl and right ctrl to hyper
would rather have meta in center left and 2nd from right
would rather super and hyper work
Must not be using wayland. Can't find any way to do half this stuff on wayland anyway. Switched back to X11.
The normal xterm mouse functionality for such clicks is still available by holding down the SHIFT key when you press the mouse button