Last active
May 5, 2023 17:19
-
-
Save yanyongyu/8ed149c44e6a35327ddafdaaa924aae5 to your computer and use it in GitHub Desktop.
logitech logiops driver config file
This file contains 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
# logitech mx master 2s logiops config file | |
# see: https://github.com/PixlOne/logiops/ | |
# DEBUG: sudo logid -v | |
# start on boot: sudo systemctl enable logid | |
devices: ( | |
{ | |
name: "Wireless Mouse MX Master 2S"; | |
smartshift: | |
{ | |
on: true; | |
threshold: 20; | |
}; | |
hiresscroll: | |
{ | |
hires: false; | |
invert: false; | |
target: false; | |
}; | |
dpi: 1600; | |
buttons: ( | |
# Thumb Button | |
{ | |
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_F10"]; | |
}; | |
}, | |
{ | |
direction: "Left"; | |
mode: "OnRelease"; | |
action = | |
{ | |
type: "Keypress"; | |
keys: ["KEY_LEFTSHIFT", "KEY_LEFTMETA", "KEY_LEFT"]; | |
}; | |
}, | |
{ | |
direction: "Right"; | |
mode: "OnRelease"; | |
action = | |
{ | |
type: "Keypress"; | |
keys: ["KEY_LEFTSHIFT", "KEY_LEFTMETA", "KEY_RIGHT"]; | |
}; | |
}, | |
{ | |
direction: "None"; | |
mode: "NoPress"; | |
} | |
); | |
}; | |
}, | |
# Forward Button | |
{ | |
cid: 0x56; | |
action = | |
{ | |
type: "Gestures"; | |
gestures: ( | |
{ | |
direction: "Left"; | |
mode: "OnRelease"; | |
action = | |
{ | |
type: "Keypress"; | |
keys: ["KEY_PREVIOUSSONG"]; | |
}; | |
}, | |
{ | |
direction: "Right"; | |
mode: "OnRelease"; | |
action = | |
{ | |
type: "Keypress"; | |
keys: ["KEY_NEXTSONG"]; | |
}; | |
}, | |
{ | |
direction: "Up"; | |
mode: "OnInterval"; | |
interval: 50; | |
action = | |
{ | |
type: "Keypress"; | |
keys: ["KEY_VOLUMEUP"]; | |
}; | |
}, | |
{ | |
direction: "Down"; | |
mode: "OnInterval"; | |
interval: 50; | |
action = | |
{ | |
type: "Keypress"; | |
keys: ["KEY_VOLUMEDOWN"]; | |
}; | |
}, | |
{ | |
direction: "None"; | |
mode: "OnRelease"; | |
action = | |
{ | |
type: "Keypress"; | |
keys: ["KEY_PLAYPAUSE"]; | |
}; | |
} | |
); | |
}; | |
}, | |
# Back Button | |
{ | |
cid: 0x53; | |
action = | |
{ | |
type: "Gestures"; | |
gestures: ( | |
{ | |
direction: "Left"; | |
mode: "OnRelease"; | |
action = | |
{ | |
type: "Keypress"; | |
keys: ["KEY_LEFTCTRL", "KEY_PAGEUP"]; | |
}; | |
}, | |
{ | |
direction: "Right"; | |
mode: "OnRelease"; | |
action = | |
{ | |
type: "Keypress"; | |
keys: ["KEY_LEFTCTRL", "KEY_PAGEDOWN"]; | |
}; | |
}, | |
{ | |
direction: "Up"; | |
mode: "OnRelease"; | |
action = | |
{ | |
type: "Keypress"; | |
keys: ["KEY_LEFTMETA", "KEY_PAGEUP"]; | |
}; | |
}, | |
{ | |
direction: "Down"; | |
mode: "OnRelease"; | |
action = | |
{ | |
type: "Keypress"; | |
keys: ["KEY_LEFTMETA", "KEY_PAGEDOWN"]; | |
}; | |
}, | |
{ | |
direction: "None"; | |
mode: "OnRelease"; | |
action = | |
{ | |
type: "Keypress"; | |
keys: ["KEY_LEFTCTRL", "KEY_TAB"]; | |
}; | |
} | |
); | |
}; | |
}, | |
# SmartShift Button | |
{ | |
cid: 0xc4; | |
action = | |
{ | |
type = "ToggleSmartshift"; | |
}; | |
} | |
); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment