Skip to content

Instantly share code, notes, and snippets.

@djallits
Last active March 2, 2023 17:25
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 djallits/3c82609c4db5a9945285b3ffb9173941 to your computer and use it in GitHub Desktop.
Save djallits/3c82609c4db5a9945285b3ffb9173941 to your computer and use it in GitHub Desktop.
Configuration for the unofficial driver for Logitech mice and keyboards.
devices: (
{
name: "Logitech MX Master 3S";
smartshift:
{
on: true;
threshold: 30;
};
hiresscroll:
{
hires: true;
invert: false;
target: false;
};
thumbwheel:
{
divert: true;
invert: false;
left: {
mode: "OnInterval"
pixels: 2
action: {
type: "Keypress"
keys: ["KEY_VOLUMEDOWN"]
}
}
right: {
mode: "OnInterval"
pixels: 2
action: {
type: "Keypress"
keys: ["KEY_VOLUMEUP"]
}
}
tap: {
type: "Keypress"
keys: ["KEY_MUTE"]
}
};
dpi: 1000;
buttons: (
{
cid: 0xc3;
action =
{
type: "Gestures";
gestures: (
{
direction: "Up";
mode: "OnRelease";
action =
{
type: "Keypress";
keys: ["KEY_LEFTCTRL", "KEY_F10"];
};
},
{
direction: "Down";
mode: "OnRelease";
action =
{
type: "Keypress";
keys: ["KEY_LEFTCTRL", "KEY_F7"];
};
},
{
direction: "Left";
mode: "OnRelease";
action =
{
type: "Keypress";
keys: ["KEY_LEFTMETA", "KEY_LEFT"];
};
},
{
direction: "Right";
mode: "OnRelease";
action =
{
type: "Keypress";
keys: ["KEY_LEFTMETA", "KEY_RIGHT"];
}
},
{
direction: "None"
mode: "NoPress"
}
);
};
},
{
cid: 0xc4;
action =
{
type = "ToggleSmartshift";
};
},
{
# Next tab instead of fwd in history, Comment to default behavior
cid: 0x53;
action =
{
type : "Keypress";
keys: ["KEY_LEFTCTRL", "KEY_PAGEUP"];
};
},
{
# Previous tab instead of back in history, Comment to default behavior
cid: 0x56;
action =
{
type : "Keypress";
keys: ["KEY_LEFTCTRL", "KEY_PAGEDOWN"];
};
}
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment