Ubuntu 20.04.1, Gnome 3.36.3, XOrg 7.7, fresh install on an HP laptop computer (17-by1xxx).
This laptop keyboard does not have a Menu key (ie. a key that activates a context menu in an application - such as would occur from a right button mouse click). I would like to set the right Alt key (this keyboard has both a left and right Alt key) to act in this capacity.
I have done a number of searches of Google, and turned up a number of potential "solutions", but most of them seem to be for older versions of Ubuntu (back in the 11.04 and 12.04 days), or they are specific to Unity, or the methods listed seem to be unusable (or, at the very least, deprecated) in 20.04.
I have found the Gnome-Tweak-Tool, and the "Additional Layout Options" menu, but I apparently lack understanding of what some of these options mean and what effect they would have.
So, my questions:
Is there a "kindergarten" level discussion of what all the options shown in "Additional Layout Options" mean (in more detail than just the phrase that accompanies the option itself), and if so, where might one find this?
Is there an option hiding in the Additional Layout Options that will allow me to use the right Alt key as a Menu key (I found an option to make Caps Lock a Menu key, but I hit Caps Lock accidentally far too often to make that a useful choice").
I have looked (briefly) at the xKeyboard-config file, but I was out of my depth pretty quickly (I am a fairly "novice" user, and not familiar with all the "behind the scenes" things that go on here), so a more verbose discussion of how all this fits together would be appreciated - although a simple "do this, then this, then this..." would work for me for now.
I also spent some time looking at xmodmap, but if I understand this correctly, this affects only the current session and would therefore need to be run each time the system restarts (which could be done using a script that runs at login)? I also found a few places that mentioned that this is somewhat processor intensive, and that it can be affected by locking and unlocking the computer (or perhaps I'm conflating this with setxkbmap - it has been a long day so far, and I should really approach this when I am fresher)...
In any event, any and all help (including pointers to background reading material) is appreciated.
EDIT:
Thanks to UnKNOWn for the assistance. I was able to use xmodmap to change the Right-Alt behavior. I ended up using Shift+Right-Alt, and it works fine. The actual steps I used, which are a slight modification on UnKNOWn's instructions are:
# Get the original key assignments, in case we want to go back
xmodmap -pke
# Find key 108 in the list
# In my case, it is:
# keycode 108 = Alt_R Meta_R Alt_R Meta_R
# Modify that to produce the menu key effect desired
# keycode 108 = Alt_R Menu Alt_R Meta_R
# Send it back to xmodmap to test it
xmodmap -e "keycode 108 = Alt_R Menu Alt_R Meta_R"
Adding that final line to the startup apps (whether directly or by saving it in a script and adding the script) solves my problem.
Thanks again, UnKNOWn.