natask / gestures

Fluid gestures for Linux.
MIT License
67 stars 7 forks source link

Support tap and hold #16

Open Frenzie opened 2 months ago

Frenzie commented 2 months ago

Is your feature request related to a problem? Please describe. Sometimes it would be useful to do for example a 3-finger tap with an action along the lines of 'sh -c \'xdotool key super+space && sleep 0.2 && xdotool mousedown 1\''. This can currently already be triggered by putting 3 fingers down and removing only one or two fingers, which acts the same as removing all fingers. The problem is that in this scenario there's no way to do mouseup programmatically.

Describe the solution you'd like

What I'd like is basically the current tap gesture, but as tap and hold, so on start it behaves as current tap, but you can also optionally set update events and an end event that triggers when you remove the last finger. I suppose behavior could even be different depending on how many fingers you remove.

Describe alternatives you've considered

The current swipe in some direction can more or less do this, but aside from being awkward the pointer doesn't move if you use more than one finger on the touchpad, so it defeats the purpose of interacting with a program while holding down some modifiers or a mouse button with xdotool.

Additional context

I thought of this in the context of Kando, but moving the cursor while holding a mouse button, shift or control can be useful in many programs.