Skip to content

Instantly share code, notes, and snippets.

@60Eight
Forked from tyler-dot-earth/logid.cfg
Created January 16, 2021 07:35
Show Gist options
  • Save 60Eight/b9e8eb1fdf9d324407c52f467a1fdb25 to your computer and use it in GitHub Desktop.
Save 60Eight/b9e8eb1fdf9d324407c52f467a1fdb25 to your computer and use it in GitHub Desktop.

Revisions

  1. @tyler-dot-earth tyler-dot-earth revised this gist Dec 17, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion logid.cfg
    Original file line number Diff line number Diff line change
    @@ -68,7 +68,7 @@ devices: ({
    mode: "OnRelease";
    action = {
    type: "Keypress";
    keys: [ "KEY_PREVIOUSONG" ];
    keys: [ "KEY_PREVIOUSSONG" ];
    }
    }
    );
  2. @tyler-dot-earth tyler-dot-earth revised this gist Dec 5, 2020. 1 changed file with 10 additions and 1 deletion.
    11 changes: 10 additions & 1 deletion logid.cfg
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ devices: ({

    smartshift: {
    on: true;
    threshold: 10;
    threshold: 15;
    };

    hiresscroll: {
    @@ -45,6 +45,15 @@ devices: ({
    }
    },

    {
    direction: "Down";
    mode: "OnRelease";
    action = {
    type: "Keypress";
    keys: [ "KEY_PLAYPAUSE" ];
    }
    },

    {
    direction: "Right";
    mode: "OnRelease";
  3. @tyler-dot-earth tyler-dot-earth revised this gist Dec 5, 2020. 1 changed file with 92 additions and 227 deletions.
    319 changes: 92 additions & 227 deletions logid.cfg
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ devices: ({

    smartshift: {
    on: true;
    threshold: 6;
    threshold: 10;
    };

    hiresscroll: {
    @@ -30,46 +30,38 @@ devices: ({
    {
    direction: "None";
    mode: "OnRelease";
    action = { type: "Keypress";
    action = {
    type: "Keypress";
    keys: [ "KEY_FORWARD" ];
    }
    },

    // {
    // 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: "Up";
    mode: "OnRelease";
    action = {
    type: "Keypress";
    keys: [ "KEY_PLAYPAUSE" ];
    }
    },

    // {
    // direction: "Left";
    // mode: "OnRelease";
    // action = {
    // type: "Keypress";
    // keys: [ "KEY_LEFTMETA", "KEY_A" ];
    // }
    // },
    {
    direction: "Right";
    mode: "OnRelease";
    action = {
    type: "Keypress";
    keys: [ "KEY_NEXTSONG" ];
    }
    },

    // {
    // direction: "Right";
    // mode: "OnRelease";
    // action = {
    // type: "Keypress";
    // keys: [ "KEY_LEFTMETA", "KEY_S" ];
    // }
    // }
    {
    direction: "Left";
    mode: "OnRelease";
    action = {
    type: "Keypress";
    keys: [ "KEY_PREVIOUSONG" ];
    }
    }
    );
    };
    },
    @@ -87,207 +79,80 @@ devices: ({
    type: "Keypress";
    keys: [ "KEY_BACK" ];
    }
    },

    // {
    // 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" ];
    // }
    // },
    {
    cid: 0xc3;
    action = {
    type: "Gestures";
    gestures: (
    {
    direction: "None";
    mode: "OnRelease";
    action = {
    type: "Keypress";
    keys: [ "KEY_LEFTCTRL", "KEY_TAB" ];
    }
    },

    // {
    // direction: "Left";
    // mode: "OnRelease";
    // action = {
    // type: "Keypress";
    // keys: [ "KEY_LEFTSHIFT", "KEY_LEFTMETA", "KEY_A" ];
    // }
    // },
    {
    direction: "Right";
    mode: "OnRelease";
    action = {
    type: "Keypress";
    keys: [ "KEY_LEFTCTRL", "KEY_PAGEDOWN" ];
    }
    },

    // {
    // direction: "Right";
    // mode: "OnRelease";
    // action = {
    // type: "Keypress";
    // keys: [ "KEY_LEFTSHIFT", "KEY_LEFTMETA", "KEY_S" ];
    // }
    // }
    // );
    // };
    // },
    {
    direction: "Left";
    mode: "OnRelease";
    action = {
    type: "Keypress";
    keys: [ "KEY_LEFTCTRL", "KEY_PAGEUP" ];
    }
    }
    );
    };
    },

    // 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" ];
    // }
    // },
    {
    cid: 0xc4;
    action = {
    type: "Gestures";
    gestures: (
    {
    direction: "None";
    mode: "OnRelease";
    action = {
    type: "ToggleSmartShift";
    }
    },

    // {
    // direction: "Left";
    // mode: "OnRelease";
    // action = {
    // type: "Keypress";
    // keys: [ "KEY_LEFTCTRL", "KEY_LEFTMETA", "KEY_LEFT" ];
    // }
    // },
    {
    direction: "Up";
    mode: "OnRelease";
    action = {
    type: "ChangeDPI";
    inc: 1000,
    }
    },

    // {
    // direction: "Right";
    // mode: "OnRelease";
    // action = {
    // type: "Keypress";
    // keys: [ "KEY_LEFTCTRL", "KEY_LEFTMETA", "KEY_RIGHT" ];
    // }
    // }
    // );
    // };
    // }
    {
    direction: "Down";
    mode: "OnRelease";
    action = {
    type: "ChangeDPI";
    inc: -1000,
    }
    }
    );
    };
    }
    );
    });
    });
  4. @tyler-dot-earth tyler-dot-earth created this gist Dec 4, 2020.
    293 changes: 293 additions & 0 deletions logid.cfg
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,293 @@
    // Logiops (Linux driver) configuration for Logitech MX Master 3.
    // Includes gestures, smartshift, DPI.
    // Tested on logid v0.2.2-35-g1c209ed.

    // File location: /etc/logid.cfg

    devices: ({
    name: "Wireless Mouse 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_FORWARD" ];
    }
    },

    // {
    // 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_BACK" ];
    }
    },

    // {
    // 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" ];
    // }
    // }
    // );
    // };
    // }
    );
    });