Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Karabiner-Elementsで1キーでかなと英数をトグルするサンプル
{
"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