Skip to content

Instantly share code, notes, and snippets.

@pank-su
Created January 21, 2024 09:03
Show Gist options
  • Save pank-su/c3c1738ade16001dccd0ef6ce85aadbc to your computer and use it in GitHub Desktop.
Save pank-su/c3c1738ade16001dccd0ef6ce85aadbc to your computer and use it in GitHub Desktop.
MX Master 3S config to gnome
devices: (
{
name: "MX Master 3S";
smartshift:
{
on: true;
threshold: 30;
torque: 50;
};
dpi: 1000;
hiresscroll:
{
hires: false;
invert: false;
target: true;
up: {
mode: "Axis";
axis: "REL_WHEEL";
axis_multiplier: 2.0;
},
down: {
mode: "Axis";
axis: "REL_WHEEL";
axis_multiplier: -2.0;
}
};
buttons: (
{ cid: 0xc3;
action =
{
type: "Gestures";
gestures: (
{
direction: "Up";
mode: "OnRelease";
action =
{
type: "Keypress";
keys: ["KEY_LEFTMETA"];
};
},
{
direction: "Down";
mode: "OnRelease";
action =
{
type: "Keypress";
keys: ["KEY_LEFTMETA"];
};
},
{
direction: "Right";
mode: "OnRelease";
action =
{
type: "Keypress";
keys: [ "KEY_LEFTCTRL", "KEY_LEFTALT", "KEY_RIGHT"];
};
},
{
direction: "Left";
mode: "OnRelease";
action =
{
type: "Keypress";
keys: [ "KEY_LEFTCTRL", "KEY_LEFTALT", "KEY_LEFT"];
};
},
{
direction: "None";
mode: "NoPress";
}
);
};
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment