Skip to content

Instantly share code, notes, and snippets.

@rdp77
Created May 9, 2025 17:29
Show Gist options
  • Save rdp77/63769155b09f3a73dc41dd03347dfb92 to your computer and use it in GitHub Desktop.
Save rdp77/63769155b09f3a73dc41dd03347dfb92 to your computer and use it in GitHub Desktop.
This is your Logiops configuration file MX Master 2S
devices: (
{
name: "Wireless Mouse MX Master 2S";
# Enable SmartShift (auto‐switch scrolling modes)
smartshift: {
on: true;
threshold: 20; # Switch threshold speed
};
# High-resolution scrolling settings
hiresscroll: {
hires: true; # Enable high-res mode
invert: false; # Normal scroll direction
target: false; # Don’t lock on a specific window
};
dpi: 1250; # Set pointer DPI
buttons: (
{
cid: 0xc3; # The thumb-wheel button’s ID
action = {
type: "Gestures"; # Use gesture detection
gestures: (
# ↑ Swipe Up: Move to next workspace
{
direction: "Up";
mode: "OnRelease";
action = {
type: "ShellCommand";
command: "xdotool set_desktop_relative 1";
};
},
# ↓ Swipe Down: Move to previous workspace
{
direction: "Down";
mode: "OnRelease";
action = {
type: "ShellCommand";
command: "xdotool set_desktop_relative -1";
};
},
# ← Swipe Left: Super + PageUp (previous workspace)
{
direction: "Left";
mode: "OnRelease";
action = {
type: "Keypress";
keys: ["KEY_LEFTMETA", "KEY_PAGEUP"];
};
},
# → Swipe Right: Super + PageDown (next workspace)
{
direction: "Right";
mode: "OnRelease";
action = {
type: "Keypress";
keys: ["KEY_LEFTMETA", "KEY_PAGEDOWN"];
};
},
# ● Click (no swipe): Toggle overview (Super key)
{
direction: "None";
mode: "OnRelease";
action = {
type: "Keypress";
keys: ["KEY_LEFTMETA"];
};
}
);
};
}
);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment