1

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.

9
  • xkbcomp is not working with gdm3 but it works with lightdm. Commented Aug 31, 2017 at 17:25
  • Isn't this the same question? Commented Aug 31, 2017 at 17:31
  • nope! Now it is not working at all. In the previous question, it was working for a while. Commented Aug 31, 2017 at 17:33
  • 1
    so the previous question should be closed? Commented Aug 31, 2017 at 17:35
  • 1
    If you're using wayland, you may want to use that tag instead of x11 -- people may search by tags and miss yours if it's not tagged correctly. Commented Aug 31, 2017 at 18:23

1 Answer 1

1

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.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.