I have made a custom layout with files in ~/.config/xkb/
. I don’t use it now, and the computer it was on has been erased, but I followed these instructions.
(I’m not sure how much this directly relates to GNOME, xkb
or the distro. I was using Ubuntu/GNOME FWIW.)