Find the answer to your Linux question:
Results 1 to 2 of 2
I've recently installed Ubuntu server, and am trying to learn the command line. I've noticed that only the left-alt button works for keyboard shortcuts on the line. My understanding is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2012
    Posts
    1

    Question Right Meta Key??


    I've recently installed Ubuntu server, and am trying to learn the command line. I've noticed that only the left-alt button works for keyboard shortcuts on the line. My understanding is that the right-alt is reserved for other functions. A quick google search revealed that pressing both the right-alt key and right-windows worked as the meta-key. Is there a way to map the right-alt key to the left, or more preferably, the right windows-key? I am new to Linux, and thought I would challenge myself by not installing a GUI. I tried installing xserver-utils, as I read somewhere that key mapping can be accomplished using xmodmap. I am, however, unaware of how I do this from the command line.

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    1,190
    You need to start by using the showkey command to find out the keycode for the alt-gr key. Then you can define this keycode as meta. This HOWTO page gives some examples of changing modifier keys.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •