Skip to content

Instantly share code, notes, and snippets.

@kdnk
Created January 16, 2021 13:02
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 kdnk/e94e438f0c6ca8fb26d4cffbedb53575 to your computer and use it in GitHub Desktop.
Save kdnk/e94e438f0c6ca8fb26d4cffbedb53575 to your computer and use it in GitHub Desktop.
コントロールキーを二度押しで Escape にするための karabier の設定
{
"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