Skip to content

Instantly share code, notes, and snippets.

@e-minguez
Created August 16, 2021 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save e-minguez/06c3f7478a90c4d9738f113bfe80632e to your computer and use it in GitHub Desktop.
Save e-minguez/06c3f7478a90c4d9738f113bfe80632e to your computer and use it in GitHub Desktop.
/etc/logid.cfg configuration file
devices: ({
name: "Wireless Mouse MX Master 2S";
// A lower threshold number makes the wheel switch to free-spin mode
// quicker when scrolling fast.
smartshift: { on: true; threshold: 16; };
hiresscroll: { hires: true; invert: false; target: false; };
// Higher numbers make the mouse more sensitive (cursor moves faster),
// 4000 max for MX Master 3.
dpi: 1000;
buttons: (
// Make thumb button 10.
{ cid: 0xc3; action = { type: "Keypress"; keys: ["KEY_LEFTMETA"]; }; },
// Make top button 11.
{ cid: 0xc4; action = { type: "Keypress"; keys: ["KEY_MUTE"]; }; },
// Back & forward = volume
{ cid: 0x53; action = { type: "Keypress"; keys: ["KEY_VOLUMEUP"]; }; },
{ cid: 0x56; action = { type: "Keypress"; keys: ["KEY_VOLUMEDOWN"]; }; }
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment