Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have MacBook Air with US keyboard and I'm quite happy with this. The only thing that bugs me is the QWERTY keyboard layout. Is there any way to change it to QWERTZ? I'm not interested in changing any other key; I only want to swap those two.

share|improve this question
up vote 2 down vote accepted

One option would be to save this as private.xml in KeyRemap4MacBook.

<?xml version="1.0"?>
<autogen>--KeyToKey-- KeyCode::Y, KeyCode::Z</autogen>
<autogen>--KeyToKey-- KeyCode::Z, KeyCode::Y</autogen>

You could also use Ukelele to make a new keyboard layout.

  1. Select the U.S. layout and choose File > New Based on Current Input Source
  2. Change the keys
  3. Save as a bundle to /Library/Keyboard Layouts/. Keyboard layouts in the user library aren't selected by default in password dialogs. The popovers shown when holding keys don't work with normal keylayout files.
  4. Log out and back in
  5. Enable the input source in System Preferences

To apply changes to a keylayout file you have to log out and back in after for example running touch /Library/Keyboard Layouts/.

If you run Setup Assistant again (sudo rm /var/db/.AppleSetupDone; sudo /System/Library/CoreServices/Setup\ Assistant), the keyboard layout you select will be used by default on the login window and guest accounts.

share|improve this answer

Your Answer


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.