I recently installed awesome on my ubuntu oneiric, a nice window manager. This doesn't seem to inherit the keyboard settings that were set in the Unity settings. Now, the problem is, I can't seem to find the correct keyboard layout to set (using setxkbmap). The control panel in Unity just states US, bet with setxkbmap -layout ussome keys don't work correctly on my macbook pro 8,2. Does anyone here know the correct settings?
setxkbmap for macbook pro (US)
xorg;keyboard
The point was that the mac us keymap (setxkbmap -layout us -variant mac) had some keys at the wrong spot.I edited /usr/share/X11/xkb/symbols/us, where it seemed that the TLDE and LSGT key are switched in the mac section. Loading setxkbmap -layout us -variant mac does the trick now.