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
{ | |
"title": "Switch input source | 输入法切换", | |
"rules": [ | |
{ | |
"description": "Tap ESC → Switch input source to English | 短按 ESC → 切换到英文输入法", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"input_sources": [ | |
{ | |
"language": "en" | |
} | |
], | |
"type": "input_source_unless" | |
} | |
], | |
"from": { | |
"key_code": "escape", | |
"modifiers": { | |
"optional": ["caps_lock"] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "escape", | |
"lazy": true | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "f18" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"key_code": "escape" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"input_sources": [ | |
{ | |
"language": "en" | |
} | |
], | |
"type": "input_source_if" | |
} | |
], | |
"from": { | |
"key_code": "escape", | |
"modifiers": { | |
"optional": ["caps_lock"] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "escape", | |
"lazy": true | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"key_code": "escape" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Tap Shift_L (⇧) → Switch input source (F18) | 短按左 Shift (⇧) → 切换输入法", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "left_shift", | |
"modifiers": { | |
"optional": ["caps_lock"] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_shift" | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "f18" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"key_code": "left_shift" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
karabiner://karabiner/assets/complex_modifications/import?url=
json url