Skip to content

Instantly share code, notes, and snippets.

@mcwindy
Last active April 30, 2024 07:59
Show Gist options
  • Save mcwindy/dafbc8c0dc5d4e2cced071cc9d6cc6c6 to your computer and use it in GitHub Desktop.
Save mcwindy/dafbc8c0dc5d4e2cced071cc9d6cc6c6 to your computer and use it in GitHub Desktop.
logiop config
# sudo apt install -y cmake libevdev-dev libudev-dev libconfig++-dev
# git clone https://github.com/PixlOne/logiops
# cd logiops
# mkdir build && cd build
# cmake ..
# make -j$(nproc)
# sudo make install
# sudo touch /etc/logid.cfg
# sudo systemctl enable --now logid
devices: (
{
name: "Wireless Mouse MX Master 3";
smartshift:
{
on: true;
threshold: 30;
};
dpi: 1400;
hiresscroll:
{
hires: true;
invert: true;
# target: false;
}
thumbwheel:
{
divert: false;
invert: true;
# left:
# {
# direction: "Left";
# threshold: 1;
# interval: 2;
# mode: "OnInterval";
# action =
# {
# type: "Keypress";
# keys: ["KEY_LEFTSHIFT", "KEY_TAB"];
# };
# };
# right:
# {
# direction: "Right";
# mode: "OnInterval";
# threshold: 1;
# interval: 2;
# action =
# {
# type: "Keypress";
# keys: ["KEY_VOLUMEDOWN"];
# };
# };
};
buttons: (
# {
# cid: 0x52;
# action = {
# mode: "OnInterval"
# }
# }
{
cid: 0x53;
action = {
type: "Keypress";
keys: ["KEY_LEFTALT","KEY_F4"]
}
},
{
cid: 0x56;
action = {
type: "Keypress";
keys: ["KEY_LEFTALT","KEY_TAB"]
}
},
{
cid: 0xc3;
action =
{
type: "Gestures";
gestures: (
{
direction: "Up";
mode: "OnRelease";
action =
{
type: "Keypress";
keys: ["KEY_LEFTMETA", "KEY_D"];
};
},
{
direction: "Down";
mode: "OnRelease";
action =
{
type: "Keypress";
keys: ["KEY_LEFTMETA", "KEY_D"];
};
},
{
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: "Keypress";
keys: ["KEY_LEFTCTRL", "KEY_LEFTALT", "KEY_T"];
};
}
);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment