Created
March 16, 2018 03:21
-
-
Save trx1138/c5f6817abfca599c98a79aeea083e76c to your computer and use it in GitHub Desktop.
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
"rules": [ | |
{ | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"description": "Double tap L-Ctrl to launh iterm2 visor", | |
"from": { | |
"key_code": "left_control", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "grave_accent_and_tilde", | |
"modifiers": [ | |
"right_command", | |
"left_control" | |
] | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "left_control pressed", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "left_control", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "left_control pressed", | |
"value": 1 | |
} | |
}, | |
{ | |
"key_code": "left_control" | |
} | |
], | |
"to_delayed_action": { | |
"to_if_invoked": [ | |
{ | |
"set_variable": { | |
"name": "left_control pressed", | |
"value": 0 | |
} | |
} | |
], | |
"to_if_canceled": [ | |
{ | |
"set_variable": { | |
"name": "left_control pressed", | |
"value": 0 | |
} | |
} | |
] | |
} | |
} | |
] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment