Skip to content

Instantly share code, notes, and snippets.

@taiansu
Created January 23, 2018 07:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taiansu/1c52c40ad2634ada66722c32a902d9b0 to your computer and use it in GitHub Desktop.
Save taiansu/1c52c40ad2634ada66722c32a902d9b0 to your computer and use it in GitHub Desktop.
karabiner switch input method
{
"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