I have a working keyboard setup in my
.xkbmap and make it active by
xkbcomp $HOME/.xkbmap $DISPLAY. But it suddenly stopped working. Somehow it does not change keyboard settings. I am totally confused.
I am using Debian/testing with Gnome.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
It's really helpfully in questions if instead of "suddenly it stopped working" you actually describe the circumstances, as an "after my recent upgrade to xwayland".
While Wayland uses
xkb, it works in a different way from X, and details depend on the compositor.
So if you are doing
xkbcomp $HOME/.xkbmap $DISPLAY,
xkbmap uses the X protocol to contact XWayland, which promptly ignores it because there's no way to change keyboard mappings in Wayland proper while running. So your upgrade to XWayland broke things (which is not really surprising, considering they are completely differet systems), and it didn't "suddenly stopped working".
This question explains how to customise your keyboard mappings with wayland. Basically you need to change (or better: add to) the system XKB database.