How to customise keyboard mappings with Wayland

I use Linux on a Macbook with a UK/GB keyboard and I customize the keymap to solve some problems Apple’s weird keyboard layout causes. I use xmodmap to do this. I’d like to try Wayland, but xmodmap doesn’t work in that. How can I achieve a similar result in Wayland? The .Xmodmap file I use contains the following: