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
173 stars 7 forks source link

Complex actions supported? #16

Open mmh0000 opened 1 year ago

mmh0000 commented 1 year ago

In Easystroke I have a guesture like this:

38 0 10 Gesture 14 5
39
40 1 1 10
41 0 1 5 0 0 32768 14
42
43 0 65366 0 21 3+wheeldown=page down 5
44
45 1 1 10
46 0 1 1 0 0 32768 14
47
48 67108864 65289 0 3 3+1 5
49
50 1 1 10
51 0 1 2 0 0 32768 14

Which if I hold right_click and use the mouse wheel, it'll send page_up and page_down events. I can not find anyway to replicate this behavior in mouse-actions.

pallaswept commented 1 year ago

I already have a feature request in place to allow mouse buttons to be used as modifiers, which is what's required to make this possible.

For me it's holding right click and sending on wheel events ctrl+tab/ctrl+shift+tab (so I can scroll through tabs with the mouse wheel.)

When mouse buttons can be used as modifiers, then we can use the rightclick as the modifier and the scroll wheel to send out commands using the 'click' gesture type. Edit: you can test this theory easily by setting up a click/press/release gesture and using a keyboard key as a modifier :)