Created
January 16, 2021 13:02
-
-
Save kdnk/e94e438f0c6ca8fb26d4cffbedb53575 to your computer and use it in GitHub Desktop.
コントロールキーを二度押しで Escape にするための karabier の設定
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
{ | |
"description": "escape by control twice", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "invoke-escape", | |
"value": 1 | |
} | |
], | |
"from": { | |
"key_code": "left_control", | |
"modifiers": { | |
"optional": ["any"] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_control" | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "japanese_eisuu" | |
}, | |
{ | |
"key_code": "escape" | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "left_control", | |
"modifiers": { | |
"optional": ["any"] | |
} | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "invoke-escape", | |
"value": 1 | |
} | |
}, | |
{ | |
"key_code": "left_control" | |
} | |
], | |
"to_delayed_action": { | |
"to_if_invoked": [ | |
{ | |
"set_variable": { | |
"name": "invoke-escape", | |
"value": 0 | |
} | |
} | |
], | |
"to_if_canceled": [ | |
{ | |
"set_variable": { | |
"name": "invoke-escape", | |
"value": 0 | |
} | |
} | |
] | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment