Take the 2-minute tour ×

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
add comment

1 Answer

up vote 1 down vote accepted

Keymaps is what you are looking for.


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


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

Your Answer


