Skip to content

Instantly share code, notes, and snippets.

@slowkow
Last active November 3, 2024 17:38
Show Gist options
  • Save slowkow/275e53573e2aeb60c8304add1e54faf5 to your computer and use it in GitHub Desktop.
Save slowkow/275e53573e2aeb60c8304add1e54faf5 to your computer and use it in GitHub Desktop.
Karabiner-Elements mouse4 to back and mouse5 to forward
<html>
<body>
<a href="karabiner://karabiner/assets/complex_modifications/import?url=https%3A%2F%2Fgist.githubusercontent.com%2Fslowkow%2F275e53573e2aeb60c8304add1e54faf5%2Fraw%2Fc63540925dba76f46293834c24700ebf1578ed10%2Fmouse-buttons-back-forward.json">click here to import into Karabiner-Elements</a>
</body>
</html>
{
"title": "button4 → command + [ AND button5 → command + ]",
"rules": [
{
"manipulators": [
{
"description": "button4 → command + [",
"from": {
"pointing_button": "button4",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "open_bracket",
"modifiers": [
"command"
]
}
],
"type": "basic"
},
{
"description": "button5 → command + ]",
"from": {
"pointing_button": "button5",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "close_bracket",
"modifiers": [
"command"
]
}
],
"type": "basic"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment