PixlOne / logiops

An unofficial userspace driver for HID++ Logitech devices
GNU General Public License v3.0
3.43k stars 272 forks source link

Feature request: Allow multiple actions at the same time #379

Open chermnyx opened 1 year ago

chermnyx commented 1 year ago

There are actions "ToggleSmartShift" and "ToggleHiresScroll". I want to be able to trigger both of them on a button click to switch between the following options:

roshal commented 1 year ago

config suggestion with multiple actions

devices = ({

    name = "Wireless Mouse MX Master 3"

    dpi = 1600

    buttons = (
        {
            ### Toggle SmartShift
            cid = 0xC4
            actions = {
                {
                    action = {
                        type = "ToggleHiresScroll"
                    }
                },
                {
                    action = {
                        type = "ToggleSmartShift"
                    }
                },
            }
        },
    )

})
orlra commented 1 year ago

repeated actions would be nice as well. example:

devices = ({

    name = "Wireless Mouse MX Master 3"
    dpi = 1600
    buttons = (
                       {
            cid = 0xC4
            actions = {
                {       
                        mode: "OnHold";
                    action = {
                               type: "Keypress";
                                                       keys: ["KEY_DOWN"];
                                                       repeat_each: 10 #every 10ms reapply action again
                    }
                },
                },
            }
        },
    )
})

I really miss button I had on previous mouse which was repeatedly spamming any button press previously configured each 100ms until I pressed another button, I want to imitate a fraction of its power.