Created
September 8, 2022 13:03
-
-
Save OKsign/918562ae53f5f300faf54a71aa48ad6e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{ "title": "Mouse Chording - Karabiner-Elements Rule", | |
"rules": [ | |
{ | |
"description": "Mouse Chording - Karabiner-Elements Rule", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"conditions": [{ "type": "frontmost_application_if", | |
"bundle_identifiers": [ | |
"^org\\.mozilla\\.firefox$", | |
"^com\\.apple\\.TextEdit$" | |
] | |
} | |
], | |
"from": { | |
"pointing_button": "button4", | |
"modifiers": { | |
"optional": ["caps_lock"] | |
} | |
}, | |
"parameters": { | |
"basic.to_if_alone_timeout_milliseconds": 700 | |
}, | |
"to_if_alone": [{ | |
"pointing_button": "button4" | |
}], | |
"to": [{ | |
"set_variable": { | |
"name": "var_name_1", | |
"value": 1 | |
} | |
}], | |
"to_after_key_up": [{ | |
"set_variable": { | |
"name": "var_name_1", | |
"value": 0 | |
} | |
}] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"pointing_button": "button1", | |
"modifiers": { | |
"optional": ["caps_lock"] | |
} | |
}, | |
"conditions": [{ | |
"type": "variable_if", | |
"name": "var_name_1", | |
"value": 1 | |
}, | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": [ | |
"^org\\.mozilla\\.firefox$", | |
"^com\\.apple\\.TextEdit$" | |
] | |
} | |
], | |
"to": [{ | |
"key_code": "s", | |
"modifiers": ["left_command","left_shift"] | |
}] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment