Last active
June 21, 2022 03:02
-
-
Save matsuoshi/3098a0a922134edcd77edffd86d77afe to your computer and use it in GitHub Desktop.
Karabiner setting, for Kensington Trackball
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "for Kensington Trackball", | |
"rules": [ | |
{ | |
"description": "L_btn + R_btn to Button 2", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"simultaneous": [ | |
{ | |
"pointing_button": "button1" | |
}, | |
{ | |
"pointing_button": "button2" | |
} | |
], | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"pointing_button": "button2" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "R_btn to Button 3, and R_btn + mouse motion to scroll wheel", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"pointing_button": "button2", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "flg_scrolling", | |
"value": 1 | |
} | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"set_variable": { | |
"name": "flg_scrolling", | |
"value": 0 | |
} | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"pointing_button": "button3" | |
} | |
] | |
}, | |
{ | |
"type": "mouse_motion_to_scroll", | |
"from": { | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "flg_scrolling", | |
"value": 1 | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment