0

I would like to set the right Alt key as a Page up key.

Currently I have the following set which gets half of what I want done.

key <MENU> { [ Next ] };

I have tried xmodmap and it doesn't work for reassigning the right alt key.

Thank you!

abu_bua
  • 10,783
William
  • 896
  • What "menus" are you talking about? The context menu is a collection of choices, you can't set the menu itself to an action.. Unless you mean the right mouse button? And what is the page down "menu"? Have you seen the question here? http://askubuntu.com/questions/325272/permanent-xmodmap-in-ubuntu-13-04/347382#347382 – Seth Oct 09 '16 at 21:29
  • @Seth thank you I do not have my ubuntu station with me currently. It appears that might work. I reworded the question because it was confusing it now says "I would like to set the context menu as a page down key." – William Oct 10 '16 at 15:43
  • Unfortunately that still does not answer my question. The context menu is a collection of menu choices, it does not make sense when you say "set the context menu as a page down key". Is there any other way you could explain what you mean to do? – Seth Oct 10 '16 at 19:53

1 Answers1

2

For newer versions of Ubuntu, Xmodmap works but after you reboot, you lose your keymappings! Instead what I did was to edit the xbd file (/usr/share/X11/xkb/symbols/pc).

In this case you would add the following entries:

key <FK09> { [Print] };
key <FK10> { [Scroll_Lock] };

Then clear the xkb settings cache:

rm -rf /var/lib/xkb/*

After a reboot your keys are mapped corectly. If you need more help with this see my post on remapping keys in Ubuntu 15.04

Harshal Benake
  • 204
  • 1
  • 14
  • you forgot sudo rm -rf /var/lib/xkb/* also is there any way to get it to take effect without rebooting? – William Oct 10 '16 at 18:11