Skip to content

Instantly share code, notes, and snippets.

@trx1138
Created March 16, 2018 03:21
Show Gist options
  • Save trx1138/c5f6817abfca599c98a79aeea083e76c to your computer and use it in GitHub Desktop.
Save trx1138/c5f6817abfca599c98a79aeea083e76c to your computer and use it in GitHub Desktop.
"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