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

Looking for a manual #35

Open zx485 opened 8 months ago

zx485 commented 8 months ago

I have used easystroke for years, but I couldn't make this software work for simple keypresses.

For example, I'd like to assign the mouse gesture "down" (with the BACK button) to pressing F11 and another gesture (BACK-right) to CTRL-W (close Tab).

But nothing has been worked so far. I tried xdotool commands like

/usr/bin/xdotool key F11

in the "Commands" field, or

xdotool key ctrl-w

But both have no effect at all.
Is there a step-by-step manual that shows how to make this software work?

mingti commented 8 months ago

I want to help you, but I need you to provide some screenshots and error messages.

PhobosK commented 8 months ago

Hi, First you have to make sure the app requirements are fulfilled - i.e. you have the udev rule and you are in the input (or plugdev) group. Then you start the GUI of the app and create an entry for the gesture and use the commands you have listed:

image

Finally it depends on the app you want your gesture to work with... Firefox for example requires its window to be focused explicitly when you send keystrokes, so you may need to use some extra options of xdotool... for example: xdotool search --name "Firefox" windowfocus key ctrl+w

Forgot to say that xdotool works only if you are on X11... For Wayland the similar tool is called ydotool

Hope it helps