Ubuntu – How to switch the keyboard layout so that the Apple key is CTRL and the ~ works correctly

keyboardkeyboard-layoutmacshortcut-keys

How do I switch the keyboard layout in Ubuntu 11 so that the Apple key is Ctrl and the ~ works correct?

This is the specific keyboard I'm talking about:

enter image description here

When I hit Shift2 it returns a "

Best Answer

There are two ways you can accomplish this task: The first way it GUI based, using:

Open Applications > System Tools > Configuration Editor
Then apps > metacity > global_keybindings in the tree view

This should enable you to modify your key values as long as you stay within the acceptable syntax.

The alternate way to edit your keybindings is by directly editing the gconf.xml files:

$HOME/.gconf/apps/metacity/gloabl-keybindings/%gconf.xml
$HOME/.gconf/apps/metacity/keybinding_commands/%gconf.xml

You can find more information at http://gnome-hacks.jodrell.net/hacks.html?id=14