Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chalkygames123/a6f50853ce40b2ae175fd66638fd5a9d to your computer and use it in GitHub Desktop.
Save chalkygames123/a6f50853ce40b2ae175fd66638fd5a9d to your computer and use it in GitHub Desktop.
Minimal Karabiner-Elements rule for selecting the input source between Japanese Eisu or Kana with command keys in the US keyboard layout.
{
"description": "Change left_command/right_command pressed alone to japanese_eisuu/japanese_kana, respectively.",
"manipulators": [
{
"from": {
"key_code": "left_command",
"modifiers": { "optional": ["any"] }
},
"to": [{ "key_code": "left_command" }],
"to_if_alone": [{ "key_code": "japanese_eisuu" }],
"type": "basic"
},
{
"from": {
"key_code": "right_command",
"modifiers": { "optional": ["any"] }
},
"to": [{ "key_code": "right_command" }],
"to_if_alone": [{ "key_code": "japanese_kana" }],
"type": "basic"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment