Skip to content

Instantly share code, notes, and snippets.

@chalkygames123
Last active September 16, 2024 07:14
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 rules for switching input sources between Japanese Eisuu and Kana with command keys in the US keyboard layout.
{
"description": "Change left_command/right_command to japanese_eisuu/japanese_kana, respectively. (Post left_command/right_command if pressed alone)",
"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