1

How to set the Meta key with xkb? Adding

key <AA06> {    [ meta,         meta    ]    };

to /usr/share/X11/xkb/symbols/us (in the "basic" section) and then running sudo dpgk-reconfigure xkb-data seems to work some times, and other times not. In particular, it seems to forget my setting when I switch back and forth between keyboard layouts (even though I added a similar line to the Swedish layout that I'm also using).

Checking with xev, the key I want as meta is initially mapped to Meta_L (as it should be) but after a switch of keyboard layouts, it's mapped to NoSymbol. Sometimes the behaviour is less predictable, and it's mapped to 'NoSymbol' already at boot.

How would I go ahead to get a better picture of where it's going wrong?

tom4everitt
  • 111
  • 4

1 Answers1

0

Have you tried removing the existing compiled keybindings?

sudo rm /var/lib/xkb/*.xkm

Then, restart.

Credit: Why did 13.10 break my custom keyboard layout?

mcaleaa
  • 173
  • 1
  • 5