Last active
April 30, 2024 07:59
-
-
Save mcwindy/dafbc8c0dc5d4e2cced071cc9d6cc6c6 to your computer and use it in GitHub Desktop.
logiop config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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