Skip to content

Instantly share code, notes, and snippets.

@jbking
Last active July 24, 2018 06:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbking/30e9cad648c21b95f2a448a3422c0f31 to your computer and use it in GitHub Desktop.
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)
{
"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