JoseExposito / touchegg

Linux multi-touch gesture recognizer
GNU General Public License v3.0
3.61k stars 167 forks source link

Separate action_execute_threshold for repeat #637

Open haarp opened 1 year ago

haarp commented 1 year ago

Is your feature request related to a problem? Please describe

I love the concept of repeatable actions, especially since you also thought of decreaseCommand for the other direction! Unfortunately, while trying to reach the action_execute_threshold, I always end up triggering multiple actions, even if I only wanted one. e.g. I want to switch to the next tab, but switch 3 tabs instead. It's hard to land right in the sweet spot of wanting to do one action, especially with quick flicks.

Describe the solution you'd like

It would be great if there were separate or multiple thresholds.

Idea 1: action_repeat_threshold as an additional initial barrier between single action and the first repeat.

e.g.: action_execute_threshold=20, action_repeat_threshold=60

-> A quick flick lands between 20 and 60, so that a single action is triggered. To start doing repeats, you consciously have to go past 60.

Describe alternatives you've considered

Maybe other forms of threshold might be an option. It's hard to control repeats once they're starting, but you don't want each repeat to require too much movement either. It's sorta tricky.

Maybe animations should be allowed for repeat=true actions. This way, with visual feedback it would be easier to control the amount of movement needed for the first action.

The only other option is to simply disable repeat. But that's sad :(

Additional context

Thanks a lot! This is a great tool and works better than the others I've tried! :)