Created
July 25, 2023 18:57
-
-
Save avinal/2acfc0ac2952f4354dd3b4b78b8ccb2b to your computer and use it in GitHub Desktop.
MX Master logiops config (useful for Sway WM)
This file contains hidden or 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: "MX Master 3S"; | |
smartshift: | |
{ | |
on: true; | |
threshold: 30; | |
torque: 50; | |
}; | |
hiresscroll: | |
{ | |
hires: true; | |
invert: false; | |
target: false; | |
}; | |
dpi: 2000; | |
buttons: ( | |
{ | |
cid: 0xc3; | |
action = | |
{ | |
type: "Gestures"; | |
gestures: ( | |
{ | |
direction: "Up"; | |
mode: "OnRelease"; | |
action = | |
{ | |
type: "Keypress"; | |
keys: ["KEY_LEFTMETA", "KEY_LEFTSHIFT", "KEY_UP"]; | |
}; | |
}, | |
{ | |
direction: "Down"; | |
mode: "OnRelease"; | |
action = | |
{ | |
type: "Keypress"; | |
keys: ["KEY_LEFTMETA", "KEY_LEFTSHIFT", "KEY_DOWN"]; | |
}; | |
}, | |
{ | |
direction: "Left"; | |
mode: "OnRelease"; | |
action = | |
{ | |
type: "Keypress"; | |
keys: ["KEY_LEFTMETA", "KEY_LEFTSHIFT", "KEY_LEFT"]; | |
}; | |
}, | |
{ | |
direction: "Right"; | |
mode: "OnRelease"; | |
action = | |
{ | |
type: "Keypress"; | |
keys = ["KEY_LEFTMETA", "KEY_LEFTSHIFT", "KEY_RIGHT"]; | |
} | |
}, | |
{ | |
direction: "None" | |
mode: "OnRelease"; | |
action = | |
{ | |
type: "Keypress"; | |
keys: ["KEY_LEFTMETA", "KEY_ENTER"]; | |
} | |
} | |
); | |
}; | |
}, | |
{ | |
cid: 0x52; | |
action = | |
{ | |
type: "Keypress"; | |
keys: ["KEY_RIGHTCTRL", "KEY_PRINT"] | |
}; | |
}, | |
{ | |
cid: 0xc4; | |
action = | |
{ | |
type: "ToggleSmartshift"; | |
}; | |
} | |
); | |
} | |
); |
Here is my config, this is for Ubuntu 22.04: https://github.com/ssocolow/configuration/blob/main/logid.cfg
Awesome @ssocolow. I am trying to transform this into a blog post. Hopefully, that will help many more.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was very helpful, thank you!