Skip to content

Instantly share code, notes, and snippets.

@saikatbsk
Last active November 1, 2021 23:34
Show Gist options
  • Save saikatbsk/df52d35c109e6a0316eca80ac09c2c45 to your computer and use it in GitHub Desktop.
Save saikatbsk/df52d35c109e6a0316eca80ac09c2c45 to your computer and use it in GitHub Desktop.
devices: (
{
name: "Wireless Mouse MX Master 2S";
smartshift:
{
on: true;
threshold: 20;
};
hiresscroll:
{
hires: true;
invert: false;
target: false;
};
dpi: 1500;
buttons: (
{
cid: 0xc3;
action =
{
type: "Gestures";
gestures: (
{
direction: "None";
mode: "OnRelease";
action =
{
type: "Keypress";
keys: ["KEY_LEFTMETA"];
};
},
{
direction: "Up";
mode: "OnRelease";
action =
{
type: "Keypress";
keys: ["KEY_LEFTMETA", "KEY_UP"];
};
},
{
direction: "Down";
mode: "OnRelease";
action =
{
type: "Keypress";
keys: ["KEY_LEFTMETA", "KEY_DOWN"];
};
},
{
direction: "Left";
mode: "OnRelease";
action =
{
type: "Keypress";
keys: ["KEY_LEFTMETA", "KEY_LEFT"];
};
},
{
direction: "Right";
mode: "OnRelease";
action =
{
type: "Keypress";
keys: ["KEY_LEFTMETA", "KEY_RIGHT"];
}
}
);
};
},
{
cid: 0xc4;
action =
{
type = "ToggleSmartshift";
};
}
);
},
{
# Another device to configure
name: "Other Logitech USB Receiver";
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment