[LBo] Alt keys on keyboard

Anita Lewis a.lewis at linuxbasics.org
Wed Jan 24 12:32:31 CET 2007


On 01/23/2007 03:29 PM Sam Morgan wrote:
> Xubuntu 6.10
> how do I get the keyboard's right hand Alt key to work
> the left hand one works fine, but not the right one
> I'm trying to get the 'alt + left arrow'
> (to got back a page in the firefox)
> to be a one handed operation.

http://kb.mozillazine.org/Keyconfig_extension

or to change the key

Get the key number.  My Alt is 113 and my Windows key next to it is 116.
 Do xev in a terminal.  This gives a little box.  Press the key.  This
will give output in the terminal telling you the key number.

See if it is currently the Multi_key:

xmodmap -pke |grep <the number>

If you get Multi_key or something other than 'Alt_R' or  'Meta_R' then
that is the problem.  You may want to play with this and find another
key to name Alt_R by the way.


xmodmap -e 'keycode 113 = Alt_R'

Put it into ~/.xinitrc or ~/.xsession or both

I know you can modify the keymap or Xmodmap or whatever it is that
actually holds all this, but I'm not sure how you know which one to use.
  for example, I see /etc/X11/Xmodmap mentioned, but don't find that on
my system.  There are a bunch of keymaps.  You can generate a keymap by
using xmodmap -pke and redirect to a file, but I don't know what you
would call it or where you would put it. Maybe ~/.xmodmap ?

Anita



More information about the QnA mailing list