Skip to content

Instantly share code, notes, and snippets.

@DennyWeinberg
Last active August 31, 2023 14:34
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 DennyWeinberg/c88ae37a63c98b87280c9ccf8b2dd338 to your computer and use it in GitHub Desktop.
Save DennyWeinberg/c88ae37a63c98b87280c9ccf8b2dd338 to your computer and use it in GitHub Desktop.
Karabiner Elements JSON configuration for an external mouse (And RDP specific things)
{
"title": "DWE",
"rules": [
{
"description": "Mouse",
"manipulators": [
{
"description": "Mouse back (Not for RDP)", "type": "basic",
"from": {"pointing_button": "button4"}, "to": [{"key_code": "left_arrow", "modifiers": ["command"]}],
"conditions": [
{"type": "frontmost_application_unless", "bundle_identifiers": ["com\\.microsoft\\.rdc\\.osx\\.beta", "com\\.microsoft\\.rdc\\.macos", "com\\.microsoft\\.teams"]},
{"type": "device_if", "identifiers": [{"vendor_id": 1133, "product_id": 49733, "description": "USB Mouse"}]}
]
},
{
"description": "Mouse forward (Not for RDP)", "type": "basic",
"from": {"pointing_button": "button5"}, "to": [{"key_code": "right_arrow", "modifiers": ["command"]}],
"conditions": [
{"type": "frontmost_application_unless", "bundle_identifiers": ["com\\.microsoft\\.rdc\\.osx\\.beta", "com\\.microsoft\\.rdc\\.macos", "com\\.microsoft\\.teams"]},
{"type": "device_if", "identifiers": [{"vendor_id": 1133, "product_id": 49733, "description": "USB Mouse"}]}
]
},
{
"description": "Mission Control", "type": "basic",
"from": {"pointing_button": "button6"}, "to": [{"key_code": "mission_control"}],
"conditions": [
{"type": "device_if", "identifiers": [{"vendor_id": 1133, "product_id": 49733, "description": "USB Mouse"}]}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment