Skip to content

Instantly share code, notes, and snippets.

@zvuc
Created February 5, 2021 14:27
Show Gist options
  • Save zvuc/d9ea82be533b025a9c5d377ef6a68c55 to your computer and use it in GitHub Desktop.
Save zvuc/d9ea82be533b025a9c5d377ef6a68c55 to your computer and use it in GitHub Desktop.
[Karabiner] JA fast switcher
{
"title": "Fast switch to/from JA",
"rules": [
{
"description": "Fast switch to JA (Opt+Cmd+Space)",
"manipulators": [
{
"type": "basic",
"conditions": [
{
"type": "input_source_unless",
"input_sources": [
{
"language": "ja"
}
]
}
],
"from": {
"key_code": "spacebar",
"modifiers": {
"mandatory": [
"option",
"command"
]
}
},
"to": [
{
"key_code": "vk_none"
},
{
"select_input_source": {
"language": "ja"
}
}
]
}
]
},
{
"description": "Fast switch out from JA -> EN (Caps Lock)",
"manipulators": [
{
"type": "basic",
"conditions": [
{
"type": "input_source_if",
"input_sources": [
{
"language": "ja"
}
]
}
],
"from": {
"key_code": "caps_lock"
},
"to": [
{
"key_code": "vk_none"
},
{
"select_input_source": {
"language": "en"
}
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment