I haven’t tried making .XCompose work on wayland. But if you use Plasma as a desktop, it does have an option to set up the compose key. I never checked if it let you create your own compose “recipes”. I also don’t know how it handles it in the background. But if you set it up through Plasma, the default compose behavior works flawlessly both on X11 and Wayland.
I need the custom “recipes”; mostly for the International Phonetic Alphabet, I use it a fair bit. Screen keyboards become a chore, once you need to type “[sʌm.θɪn lä͡ɪ̯k ðɪs]” (something like this), so I messed with my .XCompose rather extensively, and this was for years so muscle memory already settled in, e.g. if I need to type ⟨ɛ⟩ I go automatically for RightWin, e, 1.
I haven’t tried making .XCompose work on wayland. But if you use Plasma as a desktop, it does have an option to set up the compose key. I never checked if it let you create your own compose “recipes”. I also don’t know how it handles it in the background. But if you set it up through Plasma, the default compose behavior works flawlessly both on X11 and Wayland.
Cinnamon.
I need the custom “recipes”; mostly for the International Phonetic Alphabet, I use it a fair bit. Screen keyboards become a chore, once you need to type “[sʌm.θɪn lä͡ɪ̯k ðɪs]” (something like this), so I messed with my .XCompose rather extensively, and this was for years so muscle memory already settled in, e.g. if I need to type ⟨ɛ⟩ I go automatically for RightWin, e, 1.