Created
November 12, 2021 17:29
-
-
Save beefchimi/ef4d6d5407c7240b7d5a02af0cbb5d55 to your computer and use it in GitHub Desktop.
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
devices: ({ | |
name: "Wireless Mouse MX Master 2S"; | |
smartshift: { | |
on: true; | |
threshold: 50; | |
}; | |
hiresscroll: { | |
hires: true; | |
invert: false; | |
target: false; | |
}; | |
dpi: 1500; | |
buttons: ( | |
{ | |
cid: 0x56; // Forward button | |
action = { | |
type: "Gestures"; | |
gestures: ( | |
{ | |
direction: "None"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: [ "KEY_FORWARD" ]; | |
} | |
}, | |
{ | |
direction: "Up"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: [ "KEY_PLAYPAUSE" ]; | |
} | |
}, | |
{ | |
direction: "Down"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: [ "KEY_LEFTMETA" ]; | |
} | |
}, | |
{ | |
direction: "Right"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: [ "KEY_NEXTSONG" ]; | |
} | |
}, | |
{ | |
direction: "Left"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: [ "KEY_PREVIOUSSONG" ]; | |
} | |
} | |
); | |
}; | |
}, | |
{ | |
cid: 0x53; // Back button | |
action = { | |
type: "Gestures"; | |
gestures: ( | |
{ | |
direction: "None"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: [ "KEY_BACK" ]; | |
} | |
} | |
); | |
}; | |
}, | |
{ | |
cid: 0xc3; // Gesture button (hold and move) | |
action = { | |
type: "Gestures"; | |
gestures: ( | |
{ | |
direction: "None"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: [ "KEY_LEFTMETA" ]; // open activities overview | |
} | |
}, | |
{ | |
direction: "Right"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: [ "KEY_LEFTMETA", "KEY_RIGHT" ]; // snap window to right | |
} | |
}, | |
{ | |
direction: "Left"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: [ "KEY_LEFTMETA", "KEY_LEFT" ]; | |
} | |
}, | |
{ | |
direction: "Up"; | |
mode: "onRelease"; | |
action = { | |
type: "Keypress"; | |
keys: [ "KEY_LEFTMETA", "KEY_UP" ]; // maximize window | |
} | |
}, | |
{ | |
direction: "Down"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: [ "KEY_LEFTMETA", "KEY_DOWN" ]; // minimize window | |
} | |
} | |
); | |
}; | |
}, | |
{ | |
cid: 0xc4; // Top button | |
action = { | |
type: "Gestures"; | |
gestures: ( | |
{ | |
direction: "None"; | |
mode: "OnRelease"; | |
action = { | |
type: "ToggleSmartShift"; | |
} | |
}, | |
{ | |
direction: "Up"; | |
mode: "OnRelease"; | |
action = { | |
type: "ChangeDPI"; | |
inc: 1000, | |
} | |
}, | |
{ | |
direction: "Down"; | |
mode: "OnRelease"; | |
action = { | |
type: "ChangeDPI"; | |
inc: -1000, | |
} | |
} | |
); | |
}; | |
} | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment