This article details a workaround for a memory leak in Autokey on Linux, specifically addressing issues arising from the transition away from X11 and toward Wayland. The author implemented a wrapper script to monitor Autokey's memory usage and restart it when it exceeds a defined threshold.
$ 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
keysym BackSpace = Delete
keysym Delete = BackSpace
remove Lock = Caps_Lock
keycode 0x42 = Control_L
add Control = Control_L
"xkb configuration is black magic in general and sheer luck in Ubuntu."