Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.