Skip to content

Instantly share code, notes, and snippets.

@tngranados
Last active February 5, 2020 08:19
Show Gist options
  • Save tngranados/d2d2bb6905661a61eda9475f62527bc6 to your computer and use it in GitHub Desktop.
Save tngranados/d2d2bb6905661a61eda9475f62527bc6 to your computer and use it in GitHub Desktop.
Karabiner spaces control with mouse back/forward button plus cmd
{
"title": "Personal Karabiner configuration",
"rules": [
{
"description": "When the back mouse button is clicked while cmd is held down, post a ctrl+left.",
"manipulators": [
{
"type": "basic",
"from": {
"pointing_button": "button4",
"modifiers": {
"mandatory": [
"left_gui"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"left_control"
]
}
]
}
]
},
{
"description": "When the forward mouse button is clicked while cmd is held down, post a ctrl+right.",
"manipulators": [
{
"type": "basic",
"from": {
"pointing_button": "button5",
"modifiers": {
"mandatory": [
"left_gui"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"left_control"
]
}
]
}
]
},
{
"description": "Mouse back button to system's back action.",
"manipulators": [
{
"type": "basic",
"from": {
"pointing_button": "button4"
},
"to": [
{
"key_code": "open_bracket",
"modifiers": [
"left_gui"
]
}
]
}
]
},
{
"description": "Mouse forward button to system's forward action.",
"manipulators": [
{
"type": "basic",
"from": {
"pointing_button": "button5"
},
"to": [
{
"key_code": "close_bracket",
"modifiers": [
"left_gui"
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment