Skip to content

Instantly share code, notes, and snippets.

@mephistobooks
Last active December 25, 2019 06:37
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 mephistobooks/2b1a4a759f8adb397d1dbb6ce9e13259 to your computer and use it in GitHub Desktop.
Save mephistobooks/2b1a4a759f8adb397d1dbb6ce9e13259 to your computer and use it in GitHub Desktop.
親指シフトキーの定義の設定(Karabiner-Elements)
{
"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