Last active
December 25, 2019 06:37
-
-
Save mephistobooks/2b1a4a759f8adb397d1dbb6ce9e13259 to your computer and use it in GitHub Desktop.
親指シフトキーの定義の設定(Karabiner-Elements)
This file contains 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": "無変換, 変換キーでIME Off,Onと親指シフトの状態管理2019", | |
"rules": [ | |
{ | |
"description": "「無変換intl5」=>「英数」, 「変換intl4」=>「かな」にコンバートと親指シフトの状態管理2019", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "international5", | |
"modifiers": { | |
"optional": [ "any" ] | |
} | |
}, | |
"parameters": { | |
"basic.to_if_held_down_threshold_milliseconds": 5 | |
}, | |
"to_if_held_down": [ | |
{ "set_variable": { | |
"name": "Oyayubi-Any", | |
"value": 1 | |
} | |
}, | |
{ "set_variable": { | |
"name": "Oyayubi-L", | |
"value": 1 | |
} | |
} | |
], | |
"to_after_key_up": [ | |
{ "set_variable": { | |
"name": "Oyayubi-Any", | |
"value": 0 | |
} | |
}, | |
{ "set_variable": { | |
"name": "Oyayubi-L", | |
"value": 0 | |
} | |
} | |
], | |
"to": [ | |
{ "key_code": "international5" } | |
], | |
"to_if_alone": [ | |
{ | |
"select_input_source": { | |
"input_source_id": "^com\\.google\\.inputmethod\\.Japanese\\.Roman$" | |
} | |
}, | |
{ "key_code": "international5" }, | |
{ "key_code": "japanese_eisuu" } | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "international4", | |
"modifiers": { | |
"optional": [ "any" ] | |
} | |
}, | |
"parameters": { | |
"basic.to_if_held_down_threshold_milliseconds": 5 | |
}, | |
"to_if_held_down": [ | |
{ | |
"select_input_source": { | |
"input_source_id": "^com\\.google\\.inputmethod\\.Japanese\\.base$" | |
} | |
}, | |
{ "key_code": "japanese_kana" }, | |
{ "set_variable": { | |
"name": "Oyayubi-Any", | |
"value": 1 | |
} | |
}, | |
{ "set_variable": { | |
"name": "Oyayubi-R", | |
"value": 1 | |
} | |
} | |
], | |
"to_after_key_up": [ | |
{ "set_variable": { | |
"name": "Oyayubi-Any", | |
"value": 0 | |
} | |
}, | |
{ "set_variable": { | |
"name": "Oyayubi-R", | |
"value": 0 | |
} | |
} | |
], | |
"to": [ | |
{ "key_code": "international4" } | |
], | |
"to_if_alone": [ | |
{ | |
"select_input_source": { | |
"input_source_id": "^com\\.google\\.inputmethod\\.Japanese\\.base$" | |
} | |
}, | |
{ "key_code": "international4" }, | |
{ "key_code": "japanese_kana" } | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment