- Copy this "shift_space_input_source.json" to ~/.config/karabiner/assets/complex_modifications/
- Karabiner-Elements -> Preferences -> Complex Modifications -> Add rule -> Enable "Toggle input sources (English or Japanese) by shift + space"
Last active
March 4, 2018 12:51
-
-
Save tsuyo/7523696452d0a3feb7d97dc759aee9a1 to your computer and use it in GitHub Desktop.
Toggle input sources (English or Japanese) by shift + space in Karabiner-Elements
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": "Toggle input sources (English or Japanese) by shift + space", | |
"rules": [ | |
{ | |
"description": "Toggle input sources (English or Japanese) by shift + space", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"type": "input_source_if", | |
"input_sources": [ | |
{ | |
"language": "ja" | |
} | |
] | |
} | |
], | |
"type": "basic", | |
"from": { | |
"key_code": "spacebar", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "japanese_eisuu" | |
} | |
] | |
}, | |
{ | |
"conditions": [ | |
{ | |
"type": "input_source_unless", | |
"input_sources": [ | |
{ | |
"language": "ja" | |
} | |
] | |
} | |
], | |
"type": "basic", | |
"from": { | |
"key_code": "spacebar", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "japanese_kana" | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment