Skip to content

Instantly share code, notes, and snippets.

@s-show
Created December 1, 2017 15:40
Show Gist options
  • Save s-show/bd671dd251d24c7e8745dee729a34d6a to your computer and use it in GitHub Desktop.
Save s-show/bd671dd251d24c7e8745dee729a34d6a to your computer and use it in GitHub Desktop.
Settings of 'Karabiner-Elements'. ( enthumble_mode ) - json version
{
"title": "enthumble(Windows App) Mode",
"rule_list": false,
"make_extra_description": true,
"rules": [
{
"description": "(enthumble) IJKL Mode / normal",
"extra_descriptions": [
"無変換/英数 + J, K, I, L -> カーソル移動(←, ↓, ↑, →)",
"無変換/英数 単独h -> 英数キー"
],
"extra_description_level": 1,
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "international5",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "fn",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
]
},
{
"type": "basic",
"from": {
"key_code": "lang2",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "fn",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
]
},
{
"type": "basic",
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"shift",
"control",
"caps_lock"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"shift",
"control",
"caps_lock"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "i",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"shift",
"control",
"caps_lock"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"shift",
"control",
"caps_lock"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
]
}
]
},
{
"description": "(enthumble) WASD Mode / FPS like",
"extra_descriptions": [
"無変換/英数 + A, S, W, D -> カーソル移動(←, ↓, ↑, →)",
"無変換/英数 単独 -> 英数キー"
],
"extra_description_level": 1,
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "international5",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "fn",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
]
},
{
"type": "basic",
"from": {
"key_code": "lang2",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "fn",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
]
},
{
"type": "basic",
"from": {
"key_code": "a",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"shift",
"control",
"caps_lock"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "s",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"shift",
"control",
"caps_lock"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "w",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"shift",
"control",
"caps_lock"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "d",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"shift",
"control",
"caps_lock"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
]
}
]
},
{
"description": "(enthumble) HJKL Mode / vi like",
"extra_descriptions": [
"無変換/英数 + H, J, K, L -> カーソル移動(←, ↓, ↑, →)",
"無変換/英数 単独 -> 英数キー"
],
"extra_description_level": 1,
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "international5",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "fn",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
]
},
{
"type": "basic",
"from": {
"key_code": "lang2",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "fn",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
]
},
{
"type": "basic",
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"shift",
"control",
"caps_lock"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"shift",
"control",
"caps_lock"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"shift",
"control",
"caps_lock"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"shift",
"control",
"caps_lock"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
]
}
]
},
{
"description": "(enthumble) FBNP Mode / emacs like",
"extra_descriptions": [
"無変換/英数 + B, N, P, F -> カーソル移動(←, ↓, ↑, →)",
"無変換/英数 単独 -> 英数キー"
],
"extra_description_level": 1,
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "international5",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "fn",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
]
},
{
"type": "basic",
"from": {
"key_code": "lang2",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "fn",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
]
},
{
"type": "basic",
"from": {
"key_code": "b",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"shift",
"control",
"caps_lock"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "n",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"shift",
"control",
"caps_lock"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "p",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"shift",
"control",
"caps_lock"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "f",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"shift",
"control",
"caps_lock"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
]
}
]
},
{
"description": "(enthumble) 無変換/英数 + 「Space/かな」で「Return/Escape」",
"extra_descriptions": [
"無変換/英数 + Space/かな -> Enter/Escape",
"'thumb IME'より下位に設定すると、'無変換/英数 + かな'はIMEオンになります。"
],
"extra_description_level": 1,
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "international5",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "fn",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
]
},
{
"type": "basic",
"from": {
"key_code": "lang2",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "fn",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
]
},
{
"type": "basic",
"from": {
"key_code": "spacebar",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"shift",
"control",
"caps_lock"
]
}
},
"to": [
{
"key_code": "return_or_enter"
}
]
},
{
"type": "basic",
"from": {
"key_code": "international2",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"shift",
"control",
"caps_lock"
]
}
},
"to": [
{
"key_code": "escape"
}
]
}
]
},
{
"description": "(enthumble) 無変換/英数 + 「N,M/',' '.'」で「BackSpace/Delete」",
"extra_descriptions": [
"無変換/英数 + N, M -> BackSpace",
"無変換/英数 + ',' '.' -> Delete",
"'FBNP Mode'と併用すると、'無変換/英数 + N'はカーソル移動になります。"
],
"extra_description_level": 1,
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "international5",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "fn",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
]
},
{
"type": "basic",
"from": {
"key_code": "lang2",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "fn",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
]
},
{
"type": "basic",
"from": {
"key_code": "n",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "delete_or_backspace"
}
]
},
{
"type": "basic",
"from": {
"key_code": "m",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "delete_or_backspace"
}
]
},
{
"type": "basic",
"from": {
"key_code": "comma",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "delete_forward"
}
]
},
{
"type": "basic",
"from": {
"key_code": "period",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "delete_forward"
}
]
}
]
},
{
"description": "(enthumble) 無変換/英数 + 「Y,U/I,O」で「BackSpace/Delete」",
"extra_descriptions": [
"無変換/英数 + Y, U -> BackSpace",
"無変換/英数 + I, O -> Delete",
"'IJKL Mode'と併用すると、'無変換/英数 + I'はカーソル移動になります。"
],
"extra_description_level": 1,
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "international5",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "fn",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
]
},
{
"type": "basic",
"from": {
"key_code": "lang2",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "fn",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
]
},
{
"type": "basic",
"from": {
"key_code": "y",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "delete_or_backspace"
}
]
},
{
"type": "basic",
"from": {
"key_code": "u",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "delete_or_backspace"
}
]
},
{
"type": "basic",
"from": {
"key_code": "i",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "delete_forward"
}
]
},
{
"type": "basic",
"from": {
"key_code": "o",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "delete_forward"
}
]
}
]
},
{
"description": "(enthumble) 無変換/英数 + 矢印キー(←, ↓, ↑, →)で「←, ↓, ↑, →」入力",
"extra_description_level": 1,
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "international5",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "fn",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
]
},
{
"type": "basic",
"from": {
"key_code": "left_arrow",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"shell_command": "osascript -e 'set the clipboard to \"←\"'"
},
{
"shell_command": "osascript -e 'tell application \"System Events\" to keystroke \"v\" using command down'"
}
]
},
{
"type": "basic",
"from": {
"key_code": "down_arrow",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"shell_command": "osascript -e 'set the clipboard to \"↓\"'"
},
{
"shell_command": "osascript -e 'tell application \"System Events\" to keystroke \"v\" using command down'"
}
]
},
{
"type": "basic",
"from": {
"key_code": "up_arrow",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"shell_command": "osascript -e 'set the clipboard to \"↑\"'"
},
{
"shell_command": "osascript -e 'tell application \"System Events\" to keystroke \"v\" using command down'"
}
]
},
{
"type": "basic",
"from": {
"key_code": "right_arrow",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"shell_command": "osascript -e 'set the clipboard to \"→\"'"
},
{
"shell_command": "osascript -e 'tell application \"System Events\" to keystroke \"v\" using command down'"
}
]
}
]
},
{
"description": "(enthumble) thumb IME",
"extra_descriptions": [
"無変換/英数 -> IME OFF",
"変換/かな -> IME ON",
"この設定は、その他の(enthumble)設定より下位に設定すること。上位に設定すると、その他の(enthumble)設定が作動しなくなる。"
],
"extra_description_level": 1,
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "international2",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "international2"
}
],
"to_if_alone": [
{
"key_code": "japanese_kana"
}
]
},
{
"type": "basic",
"from": {
"key_code": "international4",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "international4"
}
],
"to_if_alone": [
{
"key_code": "japanese_kana"
}
]
},
{
"type": "basic",
"from": {
"key_code": "international5",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "international5"
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment