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?
/usr/share/X11/xkb/symbols/pc
– user.dz May 02 '14 at 11:41At the moment the Meta key seems to be set this way
key <META> { [ NoSymbol, Meta_L ] }; modifier_map Mod1 { <META> };
I tried to change that to
– tom4everitt May 03 '14 at 10:08key <META> { [Meta_L] };
but no noticeable effects.key <AA06> { [ NoSymbol, Meta_L ] }; modifier_map Mod1 { <AA06> };
– user.dz May 04 '14 at 09:13