Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do you switch the parenthesis and square bracket keys in Linux? Specifically Ubuntu x64 in a virtual box running under Windows 7, using an otherwise standard US keyboard layout - I already have them switched in Windows, but Linux ignores this.

share|improve this question
up vote 1 down vote accepted

Keymaps is what you are looking for.

COMPLETE KEYCODE DEFINITIONS

Each complete key definition line is of the form: keycode keynumber = keysym keysym keysym... keynumber is the internal identification number of the key, roughly equivalent to the scan code of it. keynumber can be given in decimal, octal or hexadecimal notation. Octal is denoted by a leading zero and hexadecimal by the prefix 0x.

Also use dumpkeys -l to view current configuration

example:

plain keycode 14 = BackSpace
control alt keycode 83 = Boot
alt keycode 105 = Decr_Console
alt keycode 106 = Incr_Console
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .