Custom keyboard layout in X11 and Wayland

This article shows how to make your own keyboard layout under X11 and Wayland. There's many layouts already built in every linux distro, but sometimes you might want to tweak an existing layout or make an entirely new one. For me, the reason is...