Long Press - potential feature request #367
Replies: 8 comments 6 replies
-
I can imagine this could be added but it would be awkward to implement and define in the configuration ( I would probably just extend |
Beta Was this translation helpful? Give feedback.
-
I would think most people know how long a long press is roughly, and I like the idea of combining it with the Hold On gesture. I wouldn't think the time you press would need to be exact. Really the time is just there to distinguish it from a regular tap, and could be treated as a greater than or equal to. So if you set Plus it would open up a whole new set of gestures, and allow me correlate the number of fingers to the workspace number, as so:
Currently, Hold On is only good for 3 or 4 fingers. Trying to use it with 1 or 2 fingers interferes with the left and right click. A long press feature could open up more possibilities. Anyway, just a thought. |
Beta Was this translation helpful? Give feedback.
-
I've implemented this in a new branch hold-delay so can you please try that. It is implemented with fixed options for the times (1 to 10 secs) because implementation is easier that way. Read the new section on Hold Gestures. |
Beta Was this translation helpful? Give feedback.
-
Sorry for the delay, it took me a while to get some help figuring out how to install a branch on NixOS. The hold-delay branch is working well for my use case. I set the delay to one second, but the delay still feels slightly longer than what I'm used to. I have to count one second in my head instead of going off of feel. I wonder if this could work with fractions of a second. |
Beta Was this translation helpful? Give feedback.
-
Regarding your question about 5 finger holds. I stated 1 to 5 fingers in my README because the libinput hold gesture documentation does not explicitly preclude 5 finger holds and I think it depends on your touchpad. My touchpad does not report 5 finger holds either but there may be some out there that do so it is better that I don't limit it. |
Beta Was this translation helpful? Give feedback.
-
BTW, you say "A full second works, but it does feel a little slow compared to a long press on a smartphone (ios or android)." I just want to be clear that you can still use the original |
Beta Was this translation helpful? Give feedback.
-
I have changed the hold-delay branch to work as you prefer. Now you can specify any arbitary time as an integer or float value in decimal seconds. The separator is changed to "+". E.g Comment out your hold gestures and run |
Beta Was this translation helpful? Give feedback.
-
I have released new version 2.77 which includes this change. |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to add a Long Press gesture that would work similar to Hold On but would trigger on a longer press (instead of a tap)? Perhaps the time of the longer press could be set in the config. For example, you could put 3000 in the following command for a 3000ms press:
gesture long press 1 3000 hyprctl dispatch workspace 1
Just wanted to throw the idea out there. Seems like it would be an easy lift, since it would be a derivation of Hold On. Thanks for the great work on this program.
Beta Was this translation helpful? Give feedback.
All reactions