Skip to content

Instantly share code, notes, and snippets.

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/55b8c67e53d3ef5a4167bad5c3308f05 to your computer and use it in GitHub Desktop.
Save OKsign/55b8c67e53d3ef5a4167bad5c3308f05 to your computer and use it in GitHub Desktop.
{ "title": "Rules for Karabiner-Elements | Scroll horizontally - Hold Button 4",
"rules": [
{ "description": "Rules for Karabiner-Elements | Scroll horizontally - Hold Button 4",
"manipulators":
[
{
"type": "basic",
"from": {
"pointing_button": "button4",
"modifiers": {
"optional": ["any"]
}
},
"to": [
{
"set_variable": {
"name": "enable_mouse_motion_to_scroll",
"value": 1
}
}
],
"to_after_key_up": [
{
"set_variable": {
"name": "enable_mouse_motion_to_scroll",
"value": 0
}
}
]
},
{
"type": "mouse_motion_to_scroll",
"from": {
"modifiers": {
"optional": ["any"]
}
},
"conditions": [
{
"type": "variable_if",
"name": "enable_mouse_motion_to_scroll",
"value": 1
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment