Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support tap and hold #16

Open
Frenzie opened this issue Aug 18, 2024 · 2 comments
Open

Support tap and hold #16

Frenzie opened this issue Aug 18, 2024 · 2 comments

Comments

@Frenzie
Copy link

Frenzie commented Aug 18, 2024

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.

@natask
Copy link
Owner

natask commented Dec 8, 2024

I am not sure if I fully understand your feature request. Would you like to do a specific action depending on how many fingers have been removed after a tap, i.e, do a specified action every time another finger is removed? This should be easy to extend the current codebase to support this (treat finger removal as an update event for tap gestures).

I am not actively maintaining this repository because I have moved to using windows + wsl. Hopefully you can implement and take ownership of this feature request.

@Frenzie
Copy link
Author

Frenzie commented Dec 8, 2024

Oh, that's too bad. 9 months ago still sounds quite alive. :-) I doubt I'm sufficiently motivated to put in such an effort, but I suppose you never know. It might be more fruitful to make some adjustments to Kando.

do a specified action every time another finger is removed?

Yes, I think that's the only way to effect a mouseup after starting a mousedown on the initial tap. Such a thing could also be quite useful with Plasma present windows or some such.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants