Forked from s-show/DoubleTap_left-control_Run_Safari.json
Created
November 28, 2021 23:35
-
-
Save kingtosh/e28dbb2b60dd09dbbc04a3bf86d1d753 to your computer and use it in GitHub Desktop.
karabiner-elementsの設定(左controlを2回連打したらSafariが立ち上がる)
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": "Double tap 'left_control' to 'open -a 'safari'", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { "key_code": "left_control" }, | |
"to": [ | |
{ "shell_command": "open -a 'safari'" } | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "left_control_key", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "left_control", | |
"modifiers": { | |
"optional": [ "any" ] | |
} | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "left_control_key", | |
"value": 1 | |
} | |
}, | |
{ "key_code": "left_control" } | |
], | |
"to_delayed_action": { | |
"to_if_invoked": [ | |
{ | |
"set_variable": { | |
"name": "left_control_key", | |
"value": 0 | |
} | |
} | |
], | |
"to_if_canceled": [ | |
{ | |
"set_variable": { | |
"name": "left_control_key", | |
"value": 0 | |
} | |
} | |
] | |
}, | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "left_control_key", | |
"value": 0 | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment