Ubuntu – How to map the AltGr key to the Menu key

keyboardremapping

On my Lenevo T460 laptop keyboard, I'd like to change the value of the AltGr key (between Space & PrtSc) to the Menu key as that is far more applicable for my use.

So far, I've managed to successfully change the Home & End keymapping to PgUp & PgDn and vice versa following this solution by editing the xkb file.

Is there a similar way to change AltGr to Menu key as well?

Thanks for your time.

Best Answer

Alt_Gr has the very intuitive name ISO_Level3_Shift. Therefore one has to change the following line in the pc file as instructed here from

key <MENU> {    [ Menu  ]   };

to

key <MENU> {    [ ISO_Level3_Shift  ]   };
Related Question