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'd like to change the keyboard mapping from command-line (Terminal) in Mac OS X Lion (10.7).

I can manually set it (System Preferences -> Language & Text -> Input Sources), and there's a nice option that lets me use different input sources for different documents, but I'd like to bind it to a key under zsh to easily swap between Qwerty and Dvorak layouts (I'm learning Dvorak, and having the option to switch easily would be sensational).

share|improve this question
up vote 1 down vote accepted

By default the input sources are bound to Command+Space(+Shift for reverse direction), which is the same as used by Spotlight (ask Apple why...). Go into System Preferences > Keyboard > Keyboard Shortcuts tab > Keyboard and Text Input in the listbox on the left to select a different key sequence, or select Spotlight in that listbox to disable the Spotlight binding from shadowing the normal binding.

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.