Created
October 11, 2017 12:54
-
-
Save dalian-spacekey/08e2cae57f86b702f34400ef7f02b82c to your computer and use it in GitHub Desktop.
Karabiner-Elementsで1キーでかなと英数をトグルするサンプル
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": "For Japanese (日本語環境向けの設定)", | |
"rules": [ | |
{ | |
"description": "RightOption to ToggleIME", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "imemode", | |
"value": 0 | |
} | |
], | |
"from": { | |
"key_code": "right_option", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "japanese_eisuu" | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"set_variable": { | |
"name": "imemode", | |
"value": 1 | |
} | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "imemode", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "right_option", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "japanese_kana" | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"set_variable": { | |
"name": "imemode", | |
"value": 0 | |
} | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment