Remap numlock key to context menu

My keyboard's context menu key requires an awkward 2-key combo. I want to put it onto the numlock key.

I see various methods but I don't see which is the one to use for MATE. Please point me.

Hopefully, the following link will help


The final fix :

edit /usr/share/X11/xkb/symbols/pc

And substitute values as so :

      // key <NMLK> {  [ Num_Lock      ]   };
      key <NMLK> {    [ Menu      ]   }; 

I rebooted the whole system to activate the change but that may not have been necessary.

1 Like

Restarting the DM is effective.

sudo systemctl restart lightdm