jersou / mouse-actions

mouse-actions execute some command from mouse events such as clicks/wheel on the side/corners of the screen, or drawing shapes. It's a mix between Easystroke and Compiz edge commands.
MIT License
171 stars 7 forks source link

mouse-actions not recording shapes #43

Open compilebunny opened 5 months ago

compilebunny commented 5 months ago

This is my first time using mouse-actions.

The gui would not compile using the versions of npm and nodejs that are included with ubuntu 22. So, I'm using the command line instead. I ran 'mouse-actions record' and then swiped from the center of the screen to the right edge with the right mouse button held down. Unfortunately, mouse-actions seems not to record the point history required for the gesture.

Also, I have a question about use of the left mouse button -- if point histories can be made to work, can mouse-actions be told to trigger when a shape is drawn using the left mouse button?

command to bind (empty to stop the record) : 
xcalc
comment : 
xcalc
[(date-time) INFO  mouse_actions::record] push : Binding {
        comment: "xcalc",
        event: ClickEvent {
            button: Right,
            edges: [],
            modifiers: [],
            event_type: Shape,
            shapes_angles: [
                [],
            ],
            shapes_xy: [
                PointHistory(
                    [],
                ),
            ],
        },
        cmd: [
            "xcalc",
        ],
        cmd_str: "",
    }
jersou commented 3 weeks ago

Hello, which version of NPM/node are you using? My versions:

$ npm --version                 
10.8.2
$ node --version                 
v20.17.0

I just checked, the GUI build well with these versions. What's the build error for you? I just checked, the GUI build well with these versions.

mouse-actions record also worked for me. Can you give you more information? What are you under which OS, under Wayland? Which desktop?

Also, I have a question about use of the left mouse button -- if point histories can be made to work, can mouse-actions be told to trigger when a shape is drawn using the left mouse button? I just tried, it's possible to configure the left button for the shape events, but it's global to all the shapes and it doesn't go well with the left button.

I keep the issue open for the "left button shape binding" bug.