Results 1 to 2 of 2

Thread: xmodmap remapping keys

  1. #1

    Default xmodmap remapping keys

    I just switched to opensuse from ubuntu. I used to switch BackSpace and backslash by xmodmap codes on ubuntu:
    Code:
    xmodmap -e "keycode 22 backslash bar"
    xmodmap -e "keycode 51 BackSpace"
    However, on Opensuse I get the following error:
    Code:
    xmodmap:  commandline:1:  bad keycode command (missing keysym list),
    xmodmap:  1 error encountered, aborting.
    I am just wondering what is wrong?

    Thanks!

    Or is there any other convenience way to remap keys? I use two different keyboards, one at home and one at work. I need to remap keys at work and then remap them back to default at home.

  2. #2

    Default Re: xmodmap remapping keys

    All right, changing the code to

    Code:
    xmodmap -e "keycode 22 = backslash bar"
    xmodmap -e "keycode 51 = BackSpace"
    solves the problem.

Posting Permissions

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