Skip to content

Instantly share code, notes, and snippets.

@OKsign
Created September 8, 2022 13:03
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 OKsign/918562ae53f5f300faf54a71aa48ad6e to your computer and use it in GitHub Desktop.
Save OKsign/918562ae53f5f300faf54a71aa48ad6e to your computer and use it in GitHub Desktop.
{ "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