Last active
April 4, 2025 14:51
-
-
Save trustin/56ee795930b6eb186bc6a43cedd389f0 to your computer and use it in GitHub Desktop.
logiops settings for Logitech MX Anywhere 3 and 2 (/etc/logid.cfg)
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: "MX Anywhere 3"; | |
hiresscroll: { | |
hires: true; | |
invert: false; | |
target: false; | |
up: { | |
mode: "Axis"; | |
axis: "REL_WHEEL_HI_RES"; | |
axis_multiplier: 1; | |
}; | |
down: { | |
mode: "Axis"; | |
axis: "REL_WHEEL_HI_RES"; | |
axis_multiplier: -1; | |
}; | |
}; | |
dpi: 1600; | |
buttons: ( | |
// Gesture button -> Middle button | |
{ | |
cid: 0xc4; | |
action = { | |
type: "Keypress"; | |
keys: ["BTN_MIDDLE"]; | |
}; | |
}, | |
// Backward button | |
{ | |
cid: 0x53; | |
action = { | |
type: "Keypress"; | |
keys: ["KEY_BACK"]; | |
}; | |
}, | |
{ | |
cid: 0x54; | |
action = { | |
type: "Keypress"; | |
keys: ["KEY_BACK"]; | |
}; | |
}, | |
// Forward button | |
{ | |
cid: 0x56; | |
action = { | |
type: "Keypress"; | |
keys: ["KEY_FORWARD"]; | |
}; | |
}, | |
{ | |
cid: 0x57; | |
action = { | |
type: "Keypress"; | |
keys: ["KEY_FORWARD"]; | |
}; | |
} | |
); | |
}, | |
{ | |
name: "Wireless Mouse MX Anywhere 2"; | |
hiresscroll: { | |
hires: true; | |
invert: false; | |
target: false; | |
up: { | |
mode: "Axis"; | |
axis: "REL_WHEEL_HI_RES"; | |
axis_multiplier: 1; | |
}; | |
down: { | |
mode: "Axis"; | |
axis: "REL_WHEEL_HI_RES"; | |
axis_multiplier: -1; | |
}; | |
}; | |
dpi: 1600; | |
buttons: ( | |
// Backward button | |
{ | |
cid: 0x53; | |
action = { | |
type: "Keypress"; | |
keys: ["KEY_BACK"]; | |
}; | |
}, | |
{ | |
cid: 0x54; | |
action = { | |
type: "Keypress"; | |
keys: ["KEY_BACK"]; | |
}; | |
}, | |
// Forward button | |
{ | |
cid: 0x56; | |
action = { | |
type: "Keypress"; | |
keys: ["KEY_FORWARD"]; | |
}; | |
}, | |
{ | |
cid: 0x57; | |
action = { | |
type: "Keypress"; | |
keys: ["KEY_FORWARD"]; | |
}; | |
} | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install logiops first. This file results in fairly straight behavior:
KEY_FORWARD
;KEY_BACKWARD
;BTN_MIDDLE
; and