I'm trying to swap my left Windows key with the <>|key. This worked very well on the vterm using a keymap file that does just that. However, I cannot get this to work on X (tried on KDE as well as Mate - both exhibit the same behavior)
Whether I use xmodmap
or an xkb symbol config doing that, the result is the same: the <>| key stops working and the left Windows key keeps being that key but additionally also emits a <
when pressed.
With xev
I determined that my <>| key has the code 94 and my left Windows key has 133, so I've tried this:
xmodmap -e "keycode 133 = less greater bar NoSymbol U0149 brokenbar U266A NoSymbol"
xmodmap -e "keycode 94 = Super_L"
The xkb symbol config I've tried looks like this and has the same effect as described above:
partial alphanumeric_keys
xkb_symbols "defoo" {
include "de(basic)"
name[Group1] = "German (foo)";
key <LWIN> { [ less, greater, bar, NoSymbol, U0149, brokenbar, U266A, NoSymbol ] };
key <LSGT> { [ Super_L ] };
};
Now what? I really need to swap those keys.
Edit: I'm on Ubuntu 18.04
Edit: Tried fiddling with the modifier keys as well. xmodmap -pm
says my Super keys are assigned to mod4, so:
xmodmap -e "clear mod4"
However, this had no effect, i.e. the Windows key acted exactly as before.