Skip to content

Instantly share code, notes, and snippets.

@yycking
Last active October 28, 2019 04:12
Show Gist options
  • Select an option

  • Save yycking/260bdb9440cefbee8a8bf179b9ae336b to your computer and use it in GitHub Desktop.

Select an option

Save yycking/260bdb9440cefbee8a8bf179b9ae336b to your computer and use it in GitHub Desktop.
Complex Modifications of ELECOM mouse on Karabiner-Elements

copy file to ~/.config/karabiner/assets/complex_modifications

{
"title": "elecom",
"rules": [
{
"description": "normal",
"manipulators": [
{
"description": "back: ⌘[",
"from": {
"pointing_button": "button4"
},
"to": [
{
"key_code": "close_bracket",
"modifiers": [
"command"
]
}
],
"type": "basic"
},
{
"description": "forard: ⌘]",
"from": {
"pointing_button": "button5"
},
"to": [
{
"key_code": "open_bracket",
"modifiers": [
"command"
]
}
],
"type": "basic"
}
]
},
{
"description": "Xcode",
"manipulators": [
{
"description": "back: ⌃⌘←",
"from": {
"pointing_button": "button5"
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"command",
"control"
]
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com.apple.dt.Xcode"
]
}
],
"type": "basic"
},
{
"description": "forward: ⌃⌘→",
"from": {
"pointing_button": "button4"
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"command",
"control"
]
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com.apple.dt.Xcode"
]
}
],
"type": "basic"
}
]
},
{
"description": "sublimetext",
"manipulators": [
{
"description": "back: ⌃-",
"from": {
"pointing_button": "button4"
},
"to": [
{
"key_code": "hyphen",
"modifiers": [
"control"
]
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com.sublimetext.3"
]
}
],
"type": "basic"
},
{
"description": "forward: ⌃⇪-",
"from": {
"pointing_button": "button5"
},
"to": [
{
"key_code": "hyphen",
"modifiers": [
"shift",
"control"
]
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com.sublimetext.3"
]
}
],
"type": "basic"
}
]
},
{
"description": "mini broswer",
"manipulators": [
{
"description": "back: ⌘←",
"from": {
"pointing_button": "button4"
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"command"
]
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com.electron.min"
]
}
],
"type": "basic"
},
{
"description": "forward: ⌘→",
"from": {
"pointing_button": "button5"
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"command"
]
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com.electron.min"
]
}
],
"type": "basic"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment