Running Ubuntu 16.04. I got a compact keyboard without a Menu key. They included a bunch of fluff keys, so I want to make the "web" (XF86HomePage) key be my Menu key. (One can run xev | grep keycode
to find key names and codes by pressing the keys.)
I can:
- Execute
xmodmap -e "keycode 180 = Menu"
in a terminal. This works fine for the rest of the session. - Save a file
~/.Xmodmap
with the contentkeycode 180 = Menu
and executexmodmap ~/.Xmodmap
. This also works fine for the rest of the session.
But I have not been able to get this to happen without my intervention at startup, which is what I want. I've tried adding a script to "Startup Applications" but no joy and I've also gone so far as to edit my /usr/share/X11/xkb/symbols/pc file to include:
key <XF86HomePage> {[ Menu ]};
but all that did was make my keyboard not work at all after rebooting, and I had to come back and undo the change with a rescue disc.
Advice and insight, as always, much appreciated.
key <I180> {[ Menu ]};
in that "pc" file may well have worked! Worth trying sometime when there aren't a bunch of other things on the go. – Will Matheson Sep 02 '20 at 18:30