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).