Change keyboard mapping (Input Source) from terminal in OS X

Posted by simont on Super User See other posts from Super User or by simont
Published on 2012-04-13T21:28:31Z Indexed on 2012/04/13 23:33 UTC
Read the original article Hit count: 192

Filed under:

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

© Super User or respective owner

Related posts about osx