Skip to content

Instantly share code, notes, and snippets.

@hotchpotch
Created August 15, 2018 04:33
Show Gist options
  • Save hotchpotch/63a31d37c6ccfe1888b933d4c4d551ba to your computer and use it in GitHub Desktop.
Save hotchpotch/63a31d37c6ccfe1888b933d4c4d551ba to your computer and use it in GitHub Desktop.
~/.config/karabiner/assets/complex_modification/switch_im.json
{
"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