How can I change the keyboard layout to Dvorak on a mac, using the terminal? What is the defaults write setting for the keyboard layout?
Asked
Active
Viewed 3,952 times
4
studiohack
- 13,477
Kevin Burke
- 945
- 4
- 13
- 31
1 Answers
1
This snippet did the trick for me. Note that I use Quicksilver to launch apps, so I remapped the keyboard shortcut for "switch input menu" from Cmd+Space to Option+Cmd+S.
osascript -e 'tell application "System Events"' \
-e 'keystroke "s" using {command down, option down}' \
-e 'end tell'
Kevin Burke
- 945
- 4
- 13
- 31