Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am stuck with that keyboard, unfortunately, the ^ and < are switched. Makes it hard for me to write code.

The < right now is next to 1 and the ^ is next to the Y. I want them switched back to their normal positions. I have picked the German layout and the Apple Aluminum Keyboard in my system prefs. Didn't help.

Edit: This problem also exists in Ubuntu 12.04 with an Apple aluminum keyboard (Swiss Layout). There are no options to switch these two keys.

share|improve this question
add comment

2 Answers

Can you define a couple of keyboard shortcuts in System -> Preferences -> Keyboard Shortcuts to change the actions of the two keys? That does work in Xubuntu for this situation.

share|improve this answer
add comment

There's great documentation on the arch wiki about swapping keys using xmodmap:

xmodmap - https://wiki.archlinux.org/index.php/Xmodmap

To swap keys with xmodmap you need to know the key's keycode or scancode. You can find out key codes using the program xev in terminal.

finding keycodes with xev- https://wiki.archlinux.org/index.php/Extra_Keyboard_Keys

When you know the key's code you can make temporary changes using xmodmap in terminal:

xmodmap -e "keycode  46 = l L"

(Actually this example from the arch wiki makes me think you can change some keys without knowing the keycode.)

xmodmap -e "keysym a = e E" 

These changes only last till you log out. When you're happy you have determined the changes you want to make, you can save them to a file in your home directory:

~/.Xmodmap

The Arch wiki suggest you need to perform additions steps to have this file load on login, but my experience with 13.04 is that the file loads automatically.

share|improve this answer
add comment

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.