I'm trying to remap three keys, left alt, right win and menu, to specific keys for emacs. Specifically, I wants to use RWIN as Hyper, my left alt as Meta and My MENU as Alt.
I setup xkb in this way. there are two files, the first one is super_hyper (in ~/.xkb/symbols):
partial modifier_keys
xkb_symbols "standard" {
key <LALT> { [ Meta_L, Meta_L ] };
replace key <RWIN> { [ Hyper_R, Hyper_R ] };
replace key <MENU> { [ Alt_R, Alt_R ] };
modifier_map Mod1 { <META>, Meta_L };
modifier_map Mod3 { <HYPR>, Hyper_R };
modifier_map none { <ALT>, Alt_R };
};
the second file (~/.xkb/keymap/mykbd) is really simple:
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+it+inet(evdev)+compose(paus)+terminate(ctrl_alt_bksp)+super_hyper(standard)"};
xkb_geometry { include "pc(pc105)" };
};
Then I setup all with
xkbcomp -I$HOME/.xkb ~/.xkb/keymap/mykbd $DISPLAY
xev shows that all works perfectly. And emacs works well with the hyper (right windows key) and meta (left alt key) modifiers. But when I use the menu key it responds like a meta modifier, like the alt key. How can I solve?