Skip to content

Instantly share code, notes, and snippets.

@matsuoshi
Last active June 21, 2022 03:02
Show Gist options
  • Save matsuoshi/3098a0a922134edcd77edffd86d77afe to your computer and use it in GitHub Desktop.
Save matsuoshi/3098a0a922134edcd77edffd86d77afe to your computer and use it in GitHub Desktop.
Karabiner setting, for Kensington Trackball
{
"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