Created
August 15, 2018 04:33
-
-
Save hotchpotch/63a31d37c6ccfe1888b933d4c4d551ba to your computer and use it in GitHub Desktop.
~/.config/karabiner/assets/complex_modification/switch_im.json
This file contains hidden or 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
{ | |
"title": "Switch IM", | |
"rules": [ | |
{ | |
"description": "right_control -> CN", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "right_control" | |
}, | |
"to": [{ | |
"shell_command": "/usr/local/bin/InputSourceSelector select 'com.baidu.inputmethod.BaiduIM.pinyin'" | |
}] | |
} | |
] | |
}, | |
{ | |
"description": "right_shift -> US", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "right_shift" | |
}, | |
"to": [{ | |
"shell_command": "/usr/local/bin/InputSourceSelector select 'com.apple.keylayout.US'" | |
}] | |
} | |
] | |
}, | |
{ | |
"description": "right_alt -> JP", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "right_alt" | |
}, | |
"to": [{ | |
"shell_command": "/usr/local/bin/InputSourceSelector select 'com.justsystems.inputmethod.atok30.Japanese'" | |
}] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment