Skip to content

Instantly share code, notes, and snippets.

@tsuyo
Last active March 4, 2018 12:51
Show Gist options
  • Save tsuyo/7523696452d0a3feb7d97dc759aee9a1 to your computer and use it in GitHub Desktop.
Save tsuyo/7523696452d0a3feb7d97dc759aee9a1 to your computer and use it in GitHub Desktop.
Toggle input sources (English or Japanese) by shift + space in Karabiner-Elements

How to use

  1. Copy this "shift_space_input_source.json" to ~/.config/karabiner/assets/complex_modifications/
  2. Karabiner-Elements -> Preferences -> Complex Modifications -> Add rule -> Enable "Toggle input sources (English or Japanese) by shift + space"
{
"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