Skip to content

Instantly share code, notes, and snippets.

@svyatoslavmo
Forked from Elijas/logid.cfg
Created April 27, 2020 19:38
Show Gist options
  • Save svyatoslavmo/5bb118d8c1f7bc1e0d338e27342f39f2 to your computer and use it in GitHub Desktop.
Save svyatoslavmo/5bb118d8c1f7bc1e0d338e27342f39f2 to your computer and use it in GitHub Desktop.
Gesture macros for all keys for Logitech MX Master 3, Logiops linux driver
// Location: /etc/logid.cfg
devices: ({
name: "MX Master 3";
smartshift: { on: true; threshold: 6; };
hiresscroll: { hires: false; invert: false; target: false; };
dpi: 1500; // max=4000
buttons: (
// Forward button
{ cid: 0x56; action = { type: "Gestures"; gestures: (
{ direction: "None"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_LEFTMETA" ];}},
{ direction: "Up"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_LEFTMETA", "KEY_D" ];}},
{ direction: "Down"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_LEFTMETA", "KEY_F" ];}},
{ direction: "Left"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_LEFTMETA", "KEY_A" ];}},
{ direction: "Right"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_LEFTMETA", "KEY_S" ];}}
);};},
// Back button
{ cid: 0x53; action = { type: "Gestures"; gestures: (
{ direction: "None"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_LEFTALT", "KEY_TAB" ];}},
{ direction: "Up"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_LEFTCTRL", "KEY_LEFTSHIFT", "KEY_LEFTMETA", "KEY_LEFT" ];}},
{ direction: "Down"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_LEFTCTRL", "KEY_LEFTSHIFT", "KEY_LEFTMETA", "KEY_RIGHT" ];}},
{ direction: "Left"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_BACK" ];}},
{ direction: "Right"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_FORWARD" ];}}
);};},
// Thumb button
{ cid: 0xc3; action = { type: "Gestures"; gestures: (
{ direction: "None"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_LEFTMETA", "KEY_W" ];}},
{ direction: "Up"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_LEFTSHIFT", "KEY_LEFTMETA", "KEY_D" ];}},
{ direction: "Down"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_LEFTSHIFT", "KEY_LEFTMETA", "KEY_F" ];}},
{ direction: "Left"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_LEFTSHIFT", "KEY_LEFTMETA", "KEY_A" ];}},
{ direction: "Right"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_LEFTSHIFT", "KEY_LEFTMETA", "KEY_S" ];}}
);};},
// Top button
{ cid: 0xc4; action = { type: "Gestures"; gestures: (
{ direction: "None"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_ENTER" ];}},
{ direction: "Up"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_LEFTCTRL", "KEY_INSERT" ];}},
{ direction: "Down"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_LEFTSHIFT", "KEY_INSERT" ];}},
{ direction: "Left"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_PLAYPAUSE" ];}},
{ direction: "Right"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_NEXTSONG" ];}}
);};},
// Middle mouse button
{ cid: 0x52; action = { type: "Gestures"; gestures: (
{ direction: "None"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "BTN_MIDDLE" ];}},
{ direction: "Up"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_LEFTSHIFT", "KEY_LEFTCTRL", "KEY_LEFTALT", "KEY_UP" ];}},
{ direction: "Down"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_LEFTMETA", "KEY_LEFTCTRL", "KEY_UP" ];}},
{ direction: "Left"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_LEFTCTRL", "KEY_LEFTMETA", "KEY_LEFT" ];}},
{ direction: "Right"; mode: "OnRelease"; action = { type: "Keypress"; keys: [ "KEY_LEFTCTRL", "KEY_LEFTMETA", "KEY_RIGHT" ];}}
);};}
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment