Created
January 31, 2013 20:26
-
-
Save sekimura/4686135 to your computer and use it in GitHub Desktop.
swapping Ctrl-Caps keys from terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
key="com.apple.keyboard.modifiermapping" | |
defaults -currentHost delete -g $key | |
defaults -currentHost write -g $key '( | |
{ | |
HIDKeyboardModifierMappingDst = 2; | |
HIDKeyboardModifierMappingSrc = 0; | |
}, | |
{ | |
HIDKeyboardModifierMappingDst = 0; | |
HIDKeyboardModifierMappingSrc = 2; | |
}, | |
{ | |
HIDKeyboardModifierMappingDst = 0; | |
HIDKeyboardModifierMappingSrc = 10; | |
} | |
)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment