`setxkbmap` is deprecated on wayland. patch it to detect the wm or window server, and if its wayland, it has to be determined by the compositor or desktop environment, i think. "[The X protocol has requests to set the keymap on the protocol level and these are what makes tools like setxkbmap possible. The Wayland does not have these requests, it's not possible to set the keymap using the Wayland protocol alone.](https://unix.stackexchange.com/questions/309580/does-wayland-use-xkb-for-keyboard-layouts)"