Created
January 23, 2018 07:18
-
-
Save taiansu/1c52c40ad2634ada66722c32a902d9b0 to your computer and use it in GitHub Desktop.
karabiner switch input method
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
{ | |
"description": "Left Command to Switch Input Source", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"type": "input_source_if", | |
"input_sources": [ | |
{ | |
"language": "en" | |
} | |
] | |
} | |
], | |
"type": "basic", | |
"from": { | |
"key_code": "left_command", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_command" | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"select_input_source": { | |
"language": "zh-Hant", | |
"input_source_id": "com.boshiamy.inputmethod.BoshiamyIMK" | |
} | |
} | |
] | |
}, | |
{ | |
"conditions": [ | |
{ | |
"type": "input_source_unless", | |
"input_sources": [ | |
{ | |
"language": "en" | |
} | |
] | |
} | |
], | |
"type": "basic", | |
"from": { | |
"key_code": "left_command", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_command" | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"select_input_source": { | |
"language": "en" | |
} | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment