Skip to content

Instantly share code, notes, and snippets.

@ilsubyeega
Created December 20, 2023 10:48
Show Gist options
  • Save ilsubyeega/e85d90a3e8025a566fdbfdc8b429901e to your computer and use it in GitHub Desktop.
Save ilsubyeega/e85d90a3e8025a566fdbfdc8b429901e to your computer and use it in GitHub Desktop.
devices: (
{
name: "MX Master 3S";
smartshift:
{
on: true;
threshold: 255;
default_threshold: 255;
};
hiresscroll:
{
hires: false;
invert: false;
target: true;
up: {
mode: "Axis";
axis: "REL_WHEEL";
axis_multiplier: 1.0;
},
down: {
mode: "Axis";
axis: "REL_WHEEL";
axis_multiplier: -1.0;
}
};
thumbwheel:
{
divert: false;
};
dpi: 1200;
buttons: (
{
cid: 0xc3;
action =
{
type: "Gestures";
gestures: (
{
direction: "Up";
mode: "OnInterval";
interval: 12;
action =
{
type: "Keypress";
keys: ["KEY_VOLUMEUP"];
};
},
{
direction: "Down";
mode: "OnInterval";
interval: 12;
action =
{
type: "Keypress";
keys: ["KEY_VOLUMEDOWN"];
};
},
{
direction: "Left";
mode: "OnRelease";
threshold: 50;
action =
{
type: "Keypress";
keys: ["KEY_PREVIOUSSONG"];
};
},
{
direction: "Right";
mode: "OnRelease";
threshold: 50;
action =
{
type: "Keypress";
keys: ["KEY_NEXTSONG"];
};
},
{
direction: "None"
mode: "OnRelease";
threshold: 50;
action =
{
type: "Keypress";
keys: ["KEY_PLAYPAUSE"];
};
}
);
};
},
{
cid: 0xc4;
action =
{
type: "Keypress";
keys: ["BTN_MIDDLE"];
};
}
);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment