Results 1 to 3 of 3

Thread: remapping a single key

  1. #1
    Join Date
    Jul 2009
    Beans
    105

    remapping a single key

    Hi all,

    My keyboard left parenthesis is broken and I would like to remap it to a different key on the numberpad that I never use. I have read various threads about xkb however, I cannot seem to make sense out of the process. Can anyone suggest a simple way to do this on ubuntu 14.04?

    Thanks in advance.

  2. #2
    Join Date
    Nov 2013
    Location
    On the edge
    Beans
    872
    Distro
    Ubuntu

    Re: remapping a single key

    This covers a few ways to remap keys, hopefully it will steer you in a direction you can manage:

    http://ragle.sanukcode.net/articles/...ard-in-ubuntu/
    Knock knock.
    Race condition.
    Who's there?

  3. #3
    Join Date
    Mar 2006
    Location
    Bucharest
    Beans
    604

    Re: remapping a single key

    As mentioned in the above tutorial, you can do it with xev and xmodmap (to install them, use sudo apt-get install x11-utils x11-xserver-utils. Then type xev to see the keycodes, and use xmodmap to assign a value to another key, for example:

    Code:
    xmodmap -e "keycode 134 = bracketleft"
    The key with the code 134 (in my case that's the right Windows key or Super key in Ubuntu) will be assigned the left bracket value. This may differ for your keyboard, so test with xev.

Tags for this Thread

Bookmarks

Posting Permissions

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