Last active
July 24, 2018 06:29
-
-
Save jbking/30e9cad648c21b95f2a448a3422c0f31 to your computer and use it in GitHub Desktop.
my configuration of Karabiner-Elements for AquaSKK(refs: https://pqrs.org/osx/karabiner/json.html)
This file contains hidden or 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": "AquaSKK", | |
"rules": [ | |
{ | |
"description": "Ctrl-J to Kana on Apple Terminal/iTerm2", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "j", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "japanese_kana" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": [ | |
"^com\\.googlecode\\.iterm2$", | |
"^com\\.apple\\.Terminal$" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Ctrl-J to Kana on Apple Terminal/iTerm2 for Dvorak", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "c", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "japanese_kana" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": [ | |
"^com\\.googlecode\\.iterm2$", | |
"^com\\.apple\\.Terminal$" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Ctrl-J to Kana on Apps", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "j", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "japanese_kana" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": [ | |
"^org.mozilla.firefox$", | |
"^com.microsoft.Powerpoint$", | |
"^com.google.Chrome$" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "l to Eisuu on Apps", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^org\\.python\\.python$", | |
"^com\\.jetbrains\\." | |
], | |
"type": "frontmost_application_if" | |
}, | |
{ | |
"type": "input_source_if", | |
"input_sources": [ | |
{ | |
"input_source_id": "jp.sourceforge.inputmethod.aquaskk.Hiragana" | |
} | |
] | |
} | |
], | |
"type": "basic", | |
"from": { | |
"key_code": "l", | |
"modifiers": [] | |
}, | |
"to": [ | |
{ | |
"key_code": "japanese_eisuu", | |
"modifiers": [] | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment