bulletmark / libinput-gestures

Actions gestures on your touchpad using libinput
3.93k stars 241 forks source link

Does this also work for mouse gestures? #262

Closed goggle closed 4 years ago

goggle commented 4 years ago

I was wondering if this tool can also be used to generate mouse gestures? The README only mentions touchpads...

My current computer mouse does not have a back and forward button, so I would like to emulate these with an appropriate mouse gestures (e.g. right click and drag). Is this also supported by this tool or is this out-of-scope? If it is not supported, would it still be technically possible to configure this in libinput?

bulletmark commented 4 years ago

Run libinput debug-events in a terminal window then do the mouse events you are interested in and paste the captured output here. You should be able to identify the events in that output.

Libinput-gestures is a very simple utility. All it does is capture the events from above that correspond to touchpad gestures and then perform configured actions.

goggle commented 4 years ago

For the event back it looks like this:

sudo libinput debug-events
-event2   DEVICE_ADDED     Power Button                      seat0 default group1  cap:k
-event9   DEVICE_ADDED     Video Bus                         seat0 default group2  cap:k
-event1   DEVICE_ADDED     Power Button                      seat0 default group3  cap:k
-event0   DEVICE_ADDED     Lid Switch                        seat0 default group4  cap:S
-event11  DEVICE_ADDED     HDA Intel HDMI HDMI/DP,pcm=3      seat0 default group5  cap:
-event12  DEVICE_ADDED     HDA Intel HDMI HDMI/DP,pcm=7      seat0 default group5  cap:
-event13  DEVICE_ADDED     HDA Intel HDMI HDMI/DP,pcm=8      seat0 default group5  cap:
-event14  DEVICE_ADDED     HDA Intel HDMI HDMI/DP,pcm=9      seat0 default group5  cap:
-event15  DEVICE_ADDED     HDA Intel HDMI HDMI/DP,pcm=10     seat0 default group5  cap:
-event16  DEVICE_ADDED     Microsoft Microsoft® 2.4GHz Transceiver v8.0 seat0 default group6  cap:k
-event17  DEVICE_ADDED     Microsoft Microsoft® 2.4GHz Transceiver v8.0 Mouse seat0 default group6  cap:p left scroll-nat scroll-button
-event18  DEVICE_ADDED     Microsoft Microsoft® 2.4GHz Transceiver v8.0 Consumer Control seat0 default group6  cap:kp scroll-nat
-event19  DEVICE_ADDED     Microsoft Microsoft® 2.4GHz Transceiver v8.0 Consumer Control seat0 default group6  cap:kp scroll-nat
-event20  DEVICE_ADDED     Microsoft Microsoft® 2.4GHz Transceiver v8.0 System Control seat0 default group6  cap:k
-event21  DEVICE_ADDED     ELAN Touchscreen                  seat0 default group7  cap:t  size 290x162mm ntouches 10 calib
-event24  DEVICE_ADDED     Lenovo EasyCamera: Lenovo EasyC   seat0 default group8  cap:k
-event8   DEVICE_ADDED     HDA Intel PCH Headphone           seat0 default group5  cap:
-event7   DEVICE_ADDED     HDA Intel PCH Mic                 seat0 default group5  cap:
-event4   DEVICE_ADDED     Ideapad extra buttons             seat0 default group9  cap:k
-event3   DEVICE_ADDED     AT Translated Set 2 keyboard      seat0 default group10 cap:k
-event10  DEVICE_ADDED     SynPS/2 Synaptics TouchPad        seat0 default group11 cap:pg  size 87x58mm tap(dl off) left scroll-nat scroll-2fg-edge click-buttonareas-clickfinger dwt-on
-event17  POINTER_MOTION   +0.000s    1.33/ -1.66 ( +4.00/ -5.00)
 event17  POINTER_MOTION   +0.008s   21.81/-15.58 (+14.00/-10.00)
 event17  POINTER_MOTION   +0.017s   40.00/-34.00 (+20.00/-17.00)
 event17  POINTER_MOTION   +0.025s   46.00/-38.00 (+23.00/-19.00)
 event17  POINTER_MOTION   +0.033s   46.00/-46.00 (+23.00/-23.00)
 event17  POINTER_MOTION   +0.041s   42.00/-38.00 (+21.00/-19.00)
 event17  POINTER_MOTION   +0.049s   18.00/-14.00 ( +9.00/ -7.00)
 event17  POINTER_MOTION   +0.056s   28.00/-28.00 (+14.00/-14.00)
 event17  POINTER_MOTION   +0.065s   22.00/-20.00 (+11.00/-10.00)
 event17  POINTER_MOTION   +0.072s   13.98/-11.98 ( +7.00/ -6.00)
 event17  POINTER_MOTION   +0.080s    4.45/  0.00 ( +3.00/ +0.00)
 event17  POINTER_MOTION   +0.088s    2.04/ -3.07 ( +2.00/ -3.00)
 event17  POINTER_MOTION   +0.232s   -6.84/  1.96 ( -7.00/ +2.00)
 event17  POINTER_MOTION   +0.240s  -28.95/ 11.92 (-17.00/ +7.00)
 event17  POINTER_MOTION   +0.249s  -11.39/  5.69 ( -6.00/ +3.00)
 event17  POINTER_MOTION   +0.257s  -10.67/  6.09 ( -7.00/ +4.00)
 event17  POINTER_MOTION   +0.265s  -23.32/ 13.60 (-12.00/ +7.00)
 event17  POINTER_MOTION   +0.273s  -26.00/ 20.00 (-13.00/+10.00)
 event17  POINTER_MOTION   +0.281s  -18.00/ 18.00 ( -9.00/ +9.00)
 event17  POINTER_MOTION   +0.288s   -5.71/ 11.43 ( -3.00/ +6.00)
 event17  POINTER_MOTION   +0.297s   -9.49/ 24.66 ( -5.00/+13.00)
 event17  POINTER_MOTION   +0.305s  -12.00/ 34.00 ( -6.00/+17.00)
 event17  POINTER_MOTION   +0.312s  -12.00/ 38.00 ( -6.00/+19.00)
 event17  POINTER_MOTION   +0.320s  -10.00/ 22.00 ( -5.00/+11.00)
 event17  POINTER_MOTION   +0.329s  -18.00/ 42.00 ( -9.00/+21.00)
 event17  POINTER_MOTION   +0.336s  -20.00/ 46.00 (-10.00/+23.00)
 event17  POINTER_MOTION   +0.344s  -20.00/ 44.00 (-10.00/+22.00)
 event17  POINTER_MOTION   +0.353s  -12.00/ 24.00 ( -6.00/+12.00)
 event17  POINTER_MOTION   +0.361s  -24.00/ 44.00 (-12.00/+22.00)
 event17  POINTER_MOTION   +0.369s  -26.00/ 42.00 (-13.00/+21.00)
 event17  POINTER_MOTION   +0.377s  -22.00/ 44.00 (-11.00/+22.00)
 event17  POINTER_MOTION   +0.385s  -18.00/ 40.00 ( -9.00/+20.00)
 event17  POINTER_MOTION   +0.393s  -10.00/ 22.00 ( -5.00/+11.00)
 event17  POINTER_MOTION   +0.401s  -16.00/ 40.00 ( -8.00/+20.00)
 event17  POINTER_MOTION   +0.409s  -18.00/ 38.00 ( -9.00/+19.00)
 event17  POINTER_MOTION   +0.416s  -14.00/ 44.00 ( -7.00/+22.00)
 event17  POINTER_MOTION   +0.425s   -5.98/ 21.93 ( -3.00/+11.00)
 event17  POINTER_MOTION   +0.432s  -11.96/ 43.86 ( -6.00/+22.00)
 event17  POINTER_MOTION   +0.440s  -12.00/ 42.00 ( -6.00/+21.00)
 event17  POINTER_MOTION   +0.448s  -12.00/ 36.00 ( -6.00/+18.00)
 event17  POINTER_MOTION   +0.456s   -5.87/ 15.65 ( -3.00/ +8.00)
 event17  POINTER_MOTION   +0.464s  -13.70/ 25.44 ( -7.00/+13.00)
 event17  POINTER_MOTION   +0.473s  -11.88/ 17.82 ( -6.00/ +9.00)
 event17  POINTER_MOTION   +0.481s   -8.55/  8.55 ( -5.00/ +5.00)
 event17  POINTER_MOTION   +0.489s   -4.53/  9.06 ( -3.00/ +6.00)
 event17  POINTER_MOTION   +0.497s   -1.20/  2.39 ( -1.00/ +2.00)
 event17  POINTER_MOTION   +0.505s    0.00/  3.00 ( +0.00/ +3.00)
 event17  POINTER_MOTION   +0.512s    0.00/  7.44 ( +0.00/ +6.00)
 event17  POINTER_MOTION   +0.521s    0.00/  8.39 ( +0.00/ +6.00)
 event17  POINTER_MOTION   +0.529s    1.15/  3.44 ( +1.00/ +3.00)
 event17  POINTER_MOTION   +0.536s    2.00/  2.00 ( +2.00/ +2.00)
 event17  POINTER_MOTION   +0.544s    4.90/  6.13 ( +4.00/ +5.00)
 event17  POINTER_MOTION   +0.553s    2.31/  0.00 ( +2.00/ +0.00)
 event17  POINTER_MOTION   +0.600s    0.92/  0.00 ( +1.00/ +0.00)
 event17  POINTER_MOTION   +0.608s    0.92/  0.00 ( +1.00/ +0.00)
 event17  POINTER_MOTION   +0.673s    1.87/  0.00 ( +2.00/ +0.00)
 event17  POINTER_MOTION   +0.681s    2.88/ -2.88 ( +3.00/ -3.00)
 event17  POINTER_MOTION   +0.689s    4.79/ -3.60 ( +4.00/ -3.00)
 event17  POINTER_MOTION   +0.696s    1.04/  0.00 ( +1.00/ +0.00)
 event17  POINTER_MOTION   +0.705s    1.00/ -1.00 ( +1.00/ -1.00)
 event17  POINTER_MOTION   +0.713s    2.00/ -1.00 ( +2.00/ -1.00)
 event17  POINTER_MOTION   +0.728s    1.00/ -1.00 ( +1.00/ -1.00)
 event17  POINTER_MOTION   +0.752s    0.94/  0.00 ( +1.00/ +0.00)
 event17  POINTER_BUTTON   +0.809s  BTN_RIGHT (273) pressed, seat count: 1
 event17  POINTER_MOTION   +0.864s   -1.92/  0.00 ( -3.00/ +0.00)
 event17  POINTER_MOTION   +0.873s   -8.48/  0.00 ( -8.00/ +0.00)
 event17  POINTER_MOTION   +0.881s  -19.77/  0.00 (-11.00/ +0.00)
 event17  POINTER_MOTION   +0.888s  -20.00/  2.00 (-10.00/ +1.00)
 event17  POINTER_MOTION   +0.897s  -16.86/  0.00 ( -9.00/ +0.00)
 event17  POINTER_MOTION   +0.905s  -40.80/  0.00 (-21.00/ +0.00)
 event17  POINTER_MOTION   +0.912s  -54.00/  0.00 (-27.00/ +0.00)
 event17  POINTER_MOTION   +0.920s  -64.00/  0.00 (-32.00/ +0.00)
 event17  POINTER_MOTION   +0.929s  -36.00/  0.00 (-18.00/ +0.00)
 event17  POINTER_MOTION   +0.936s  -68.00/  0.00 (-34.00/ +0.00)
 event17  POINTER_MOTION   +0.944s  -66.00/  0.00 (-33.00/ +0.00)
 event17  POINTER_MOTION   +0.953s  -66.00/  0.00 (-33.00/ +0.00)
 event17  POINTER_MOTION   +0.961s  -68.00/  0.00 (-34.00/ +0.00)
 event17  POINTER_MOTION   +0.969s  -36.00/  0.00 (-18.00/ +0.00)
 event17  POINTER_MOTION   +0.977s  -64.00/  0.00 (-32.00/ +0.00)
 event17  POINTER_MOTION   +0.985s  -64.00/  0.00 (-32.00/ +0.00)
 event17  POINTER_MOTION   +0.993s  -56.00/  0.00 (-28.00/ +0.00)
 event17  POINTER_MOTION   +1.001s  -30.00/  0.00 (-15.00/ +0.00)
 event17  POINTER_MOTION   +1.009s  -56.00/  0.00 (-28.00/ +0.00)
 event17  POINTER_MOTION   +1.016s  -54.00/  2.00 (-27.00/ +1.00)
 event17  POINTER_MOTION   +1.025s  -58.00/  2.00 (-29.00/ +1.00)
 event17  POINTER_MOTION   +1.033s  -32.00/  0.00 (-16.00/ +0.00)
 event17  POINTER_MOTION   +1.040s  -58.00/  0.00 (-29.00/ +0.00)
 event17  POINTER_MOTION   +1.049s  -52.00/  0.00 (-26.00/ +0.00)
 event17  POINTER_MOTION   +1.057s  -46.00/  0.00 (-23.00/ +0.00)
 event17  POINTER_MOTION   +1.065s  -32.00/  0.00 (-16.00/ +0.00)
 event17  POINTER_MOTION   +1.073s   -9.37/  0.00 ( -5.00/ +0.00)
 event17  POINTER_MOTION   +1.081s   -4.72/  0.00 ( -4.00/ +0.00)
 event17  POINTER_MOTION   +1.089s   -1.02/  0.00 ( -1.00/ +0.00)
 event17  POINTER_MOTION   +1.097s   -2.00/  0.00 ( -2.00/ +0.00)
 event17  POINTER_MOTION   +1.105s   -1.00/  0.00 ( -1.00/ +0.00)
 event17  POINTER_MOTION   +1.113s   -3.00/  1.00 ( -3.00/ +1.00)
 event17  POINTER_MOTION   +1.121s   -2.06/  3.08 ( -2.00/ +3.00)
 event17  POINTER_MOTION   +1.129s   -7.31/  0.00 ( -6.00/ +0.00)
 event17  POINTER_MOTION   +1.137s   -3.54/  0.00 ( -3.00/ +0.00)
 event17  POINTER_MOTION   +1.144s   -7.45/  0.00 ( -6.00/ +0.00)
 event17  POINTER_MOTION   +1.153s   -8.38/  0.00 ( -6.00/ +0.00)
 event17  POINTER_MOTION   +1.160s   -6.59/  0.00 ( -5.00/ +0.00)
 event17  POINTER_MOTION   +1.168s   -2.23/  0.00 ( -2.00/ +0.00)
 event17  POINTER_MOTION   +1.177s   -3.00/ -1.00 ( -3.00/ -1.00)
 event17  POINTER_MOTION   +1.185s   -5.55/ -1.11 ( -5.00/ -1.00)
 event17  POINTER_MOTION   +1.193s   -6.54/ -3.92 ( -5.00/ -3.00)
 event17  POINTER_MOTION   +1.201s   -3.51/  0.00 ( -3.00/ +0.00)
 event17  POINTER_MOTION   +1.209s   -3.00/ -1.00 ( -3.00/ -1.00)
 event17  POINTER_MOTION   +1.217s  -13.08/ -5.81 ( -9.00/ -4.00)
 event17  POINTER_MOTION   +1.225s  -16.96/ -5.65 ( -9.00/ -3.00)
 event17  POINTER_MOTION   +1.233s  -12.14/ -5.20 ( -7.00/ -3.00)
 event17  POINTER_MOTION   +1.240s   -5.64/ -1.41 ( -4.00/ -1.00)
 event17  POINTER_MOTION   +1.249s  -15.65/ -7.82 (-10.00/ -5.00)
 event17  POINTER_MOTION   +1.257s  -14.63/ -5.49 ( -8.00/ -3.00)
 event17  POINTER_MOTION   +1.264s   -4.30/ -2.86 ( -3.00/ -2.00)
 event17  POINTER_MOTION   +1.272s   -5.97/ -1.19 ( -5.00/ -1.00)
 event17  POINTER_MOTION   +1.281s  -11.31/ -2.83 ( -8.00/ -2.00)
 event17  POINTER_MOTION   +1.288s  -13.70/ -3.43 ( -8.00/ -2.00)
 event17  POINTER_MOTION   +1.297s  -13.62/ -1.70 ( -8.00/ -1.00)
 event17  POINTER_MOTION   +1.305s  -17.48/ -1.75 (-10.00/ -1.00)
 event17  POINTER_MOTION   +1.313s  -10.00/  0.00 ( -6.00/ +0.00)
 event17  POINTER_MOTION   +1.321s  -19.06/ -5.20 (-11.00/ -3.00)
 event17  POINTER_MOTION   +1.329s  -17.52/ -1.95 ( -9.00/ -1.00)
 event17  POINTER_MOTION   +1.337s  -13.88/  0.00 ( -8.00/ +0.00)
 event17  POINTER_MOTION   +1.345s   -5.58/ -1.39 ( -4.00/ -1.00)
 event17  POINTER_MOTION   +1.353s   -9.39/ -2.68 ( -7.00/ -2.00)
 event17  POINTER_MOTION   +1.361s   -8.85/  0.00 ( -6.00/ +0.00)
 event17  POINTER_MOTION   +1.368s   -8.65/  0.00 ( -6.00/ +0.00)
 event17  POINTER_MOTION   +1.377s   -3.69/ -1.23 ( -3.00/ -1.00)
 event17  POINTER_MOTION   +1.385s   -3.00/  0.00 ( -3.00/ +0.00)
 event17  POINTER_MOTION   +1.392s  -11.57/ -4.34 ( -8.00/ -3.00)
 event17  POINTER_MOTION   +1.401s  -11.62/  0.00 ( -7.00/ +0.00)
 event17  POINTER_MOTION   +1.409s  -14.48/ -1.61 ( -9.00/ -1.00)
 event17  POINTER_MOTION   +1.417s   -2.70/  0.00 ( -2.00/ +0.00)
 event17  POINTER_MOTION   +1.425s  -10.26/  0.00 ( -8.00/ +0.00)
 event17  POINTER_MOTION   +1.433s  -13.32/  0.00 ( -8.00/ +0.00)
 event17  POINTER_MOTION   +1.441s   -5.52/  0.00 ( -4.00/ +0.00)
 event17  POINTER_MOTION   +1.449s   -2.04/  0.00 ( -2.00/ +0.00)
 event17  POINTER_MOTION   +1.457s   -3.00/  0.00 ( -3.00/ +0.00)
 event17  POINTER_MOTION   +1.489s   -0.94/  0.00 ( -1.00/ +0.00)
 event17  POINTER_MOTION   +1.544s   -0.58/ -0.58 ( -1.00/ -1.00)
 event17  POINTER_MOTION   +1.568s    0.00/ -1.65 ( +0.00/ -2.00)
 event17  POINTER_BUTTON   +1.568s  BTN_RIGHT (273) released, seat count: 0
 event17  POINTER_MOTION   +1.577s    1.00/ -2.00 ( +1.00/ -2.00)
 event17  POINTER_MOTION   +1.593s    2.00/ -1.00 ( +2.00/ -1.00)
 event17  POINTER_MOTION   +1.601s    1.00/ -2.00 ( +1.00/ -2.00)
 event17  POINTER_MOTION   +1.624s    0.96/  0.00 ( +1.00/ +0.00)
 event17  POINTER_MOTION   +1.633s    1.91/  0.00 ( +2.00/ +0.00)
 event17  POINTER_MOTION   +1.649s    1.00/ -1.00 ( +1.00/ -1.00)
 event17  POINTER_MOTION   +1.681s    0.87/  0.00 ( +1.00/ +0.00)
 event17  POINTER_MOTION   +1.729s    2.36/ -0.79 ( +3.00/ -1.00)
 event17  POINTER_MOTION   +1.752s    1.99/ -0.99 ( +2.00/ -1.00)
 event17  POINTER_MOTION   +1.785s    0.95/ -0.95 ( +1.00/ -1.00)
 event17  POINTER_MOTION   +6.337s    0.52/  0.00 ( +1.00/ +0.00)
 event17  POINTER_MOTION   +6.514s    0.00/ -0.33 ( +0.00/ -1.00)
 event17  POINTER_MOTION   +6.522s    0.00/ -0.86 ( +0.00/ -1.00)
 event17  POINTER_MOTION   +6.545s    0.00/ -0.96 ( +0.00/ -1.00)
 event17  POINTER_MOTION   +6.553s    0.00/ -1.91 ( +0.00/ -2.00)
 event17  POINTER_MOTION   +6.561s    0.00/ -1.00 ( +0.00/ -1.00)
 event17  POINTER_MOTION   +6.570s    0.00/ -2.00 ( +0.00/ -2.00)
 event17  POINTER_MOTION   +6.578s    0.00/ -1.00 ( +0.00/ -1.00)
 event17  POINTER_MOTION   +6.586s    0.00/ -1.00 ( +0.00/ -1.00)
 event17  POINTER_MOTION   +6.594s    0.00/ -2.00 ( +0.00/ -2.00)
 event17  POINTER_MOTION   +6.601s    0.00/ -4.15 ( +0.00/ -4.00)
 event17  POINTER_MOTION   +6.610s    0.00/ -2.06 ( +0.00/ -2.00)
 event17  POINTER_MOTION   +6.618s   -2.00/ -1.00 ( -2.00/ -1.00)
 event17  POINTER_MOTION   +6.633s   -1.00/ -1.00 ( -1.00/ -1.00)
 event17  POINTER_MOTION   +6.641s    0.00/ -3.00 ( +0.00/ -3.00)
 event17  POINTER_MOTION   +6.657s    0.00/ -0.99 ( +0.00/ -1.00)
 event17  POINTER_MOTION   +6.666s   -0.99/ -1.97 ( -1.00/ -2.00)
 event17  POINTER_MOTION   +6.673s   -1.00/ -1.00 ( -1.00/ -1.00)
 event17  POINTER_MOTION   +6.697s   -0.98/ -0.98 ( -1.00/ -1.00)
 event17  POINTER_MOTION   +7.129s    0.62/ -1.24 ( +1.00/ -2.00)
 event17  POINTER_MOTION   +7.137s    6.39/ -5.32 ( +6.00/ -5.00)
 event17  POINTER_MOTION   +7.146s    5.48/ -2.74 ( +4.00/ -2.00)
 event17  POINTER_MOTION   +7.154s    6.38/ -5.10 ( +5.00/ -4.00)
 event17  POINTER_MOTION   +7.162s   13.20/ -8.25 ( +8.00/ -5.00)
 event17  POINTER_MOTION   +7.170s   15.17/-11.37 ( +8.00/ -6.00)
 event17  POINTER_MOTION   +7.178s   21.88/-13.92 (+11.00/ -7.00)
 event17  POINTER_MOTION   +7.185s   16.00/-10.00 ( +8.00/ -5.00)
 event17  POINTER_MOTION   +7.194s   36.00/-26.00 (+18.00/-13.00)
 event17  POINTER_MOTION   +7.201s   46.00/-26.00 (+23.00/-13.00)
 event17  POINTER_MOTION   +7.209s   58.00/-20.00 (+29.00/-10.00)
 event17  POINTER_MOTION   +7.217s   30.00/-10.00 (+15.00/ -5.00)
 event17  POINTER_MOTION   +7.225s   60.00/-22.00 (+30.00/-11.00)
 event17  POINTER_MOTION   +7.233s   70.00/-20.00 (+35.00/-10.00)
 event17  POINTER_MOTION   +7.241s   68.00/-22.00 (+34.00/-11.00)
 event17  POINTER_MOTION   +7.250s   34.00/-12.00 (+17.00/ -6.00)
 event17  POINTER_MOTION   +7.258s   70.00/-20.00 (+35.00/-10.00)
 event17  POINTER_MOTION   +7.266s   72.00/-18.00 (+36.00/ -9.00)
 event17  POINTER_MOTION   +7.274s   76.00/-20.00 (+38.00/-10.00)
 event17  POINTER_MOTION   +7.281s   74.00/-18.00 (+37.00/ -9.00)
 event17  POINTER_MOTION   +7.290s   36.00/ -8.00 (+18.00/ -4.00)
 event17  POINTER_MOTION   +7.298s   74.00/-12.00 (+37.00/ -6.00)
 event17  POINTER_MOTION   +7.305s   66.00/-10.00 (+33.00/ -5.00)
 event17  POINTER_MOTION   +7.313s   60.00/-12.00 (+30.00/ -6.00)
 event17  POINTER_MOTION   +7.322s   28.00/ -4.00 (+14.00/ -2.00)
 event17  POINTER_MOTION   +7.329s   52.00/ -8.00 (+26.00/ -4.00)
 event17  POINTER_MOTION   +7.337s   44.00/ -8.00 (+22.00/ -4.00)
 event17  POINTER_MOTION   +7.346s   40.00/ -6.00 (+20.00/ -3.00)
 event17  POINTER_MOTION   +7.354s   46.00/ -8.00 (+23.00/ -4.00)
 event17  POINTER_MOTION   +7.362s   19.94/ -3.99 (+10.00/ -2.00)
 event17  POINTER_MOTION   +7.370s   41.87/ -7.97 (+21.00/ -4.00)
 event17  POINTER_MOTION   +7.378s   38.00/ -8.00 (+19.00/ -4.00)
 event17  POINTER_MOTION   +7.386s   40.00/ -8.00 (+20.00/ -4.00)
 event17  POINTER_MOTION   +7.394s   17.72/ -1.97 ( +9.00/ -1.00)
 event17  POINTER_MOTION   +7.402s   31.50/ -5.91 (+16.00/ -3.00)
 event17  POINTER_MOTION   +7.409s   30.00/ -8.00 (+15.00/ -4.00)
 event17  POINTER_MOTION   +7.418s   24.00/ -4.00 (+12.00/ -2.00)
 event17  POINTER_MOTION   +7.426s    8.21/ -1.64 ( +5.00/ -1.00)
 event17  POINTER_MOTION   +7.433s   12.46/ -3.12 ( +8.00/ -2.00)
 event17  POINTER_MOTION   +7.441s    1.35/ -1.35 ( +1.00/ -1.00)
 event17  POINTER_MOTION   +7.449s    2.00/  0.00 ( +2.00/ +0.00)
 event17  POINTER_BUTTON   +7.513s  BTN_LEFT (272) pressed, seat count: 1
 event17  POINTER_BUTTON   +7.602s  BTN_LEFT (272) released, seat count: 0
-event16  KEYBOARD_KEY     +8.117s  *** (-1) pressed
 event16  KEYBOARD_KEY     +8.245s  *** (-1) pressed

For the event forward it looks like this:

-event2   DEVICE_ADDED     Power Button                      seat0 default group1  cap:k
-event9   DEVICE_ADDED     Video Bus                         seat0 default group2  cap:k
-event1   DEVICE_ADDED     Power Button                      seat0 default group3  cap:k
-event0   DEVICE_ADDED     Lid Switch                        seat0 default group4  cap:S
-event11  DEVICE_ADDED     HDA Intel HDMI HDMI/DP,pcm=3      seat0 default group5  cap:
-event12  DEVICE_ADDED     HDA Intel HDMI HDMI/DP,pcm=7      seat0 default group5  cap:
-event13  DEVICE_ADDED     HDA Intel HDMI HDMI/DP,pcm=8      seat0 default group5  cap:
-event14  DEVICE_ADDED     HDA Intel HDMI HDMI/DP,pcm=9      seat0 default group5  cap:
-event15  DEVICE_ADDED     HDA Intel HDMI HDMI/DP,pcm=10     seat0 default group5  cap:
-event16  DEVICE_ADDED     Microsoft Microsoft® 2.4GHz Transceiver v8.0 seat0 default group6  cap:k
-event17  DEVICE_ADDED     Microsoft Microsoft® 2.4GHz Transceiver v8.0 Mouse seat0 default group6  cap:p left scroll-nat scroll-button
-event18  DEVICE_ADDED     Microsoft Microsoft® 2.4GHz Transceiver v8.0 Consumer Control seat0 default group6  cap:kp scroll-nat
-event19  DEVICE_ADDED     Microsoft Microsoft® 2.4GHz Transceiver v8.0 Consumer Control seat0 default group6  cap:kp scroll-nat
-event20  DEVICE_ADDED     Microsoft Microsoft® 2.4GHz Transceiver v8.0 System Control seat0 default group6  cap:k
-event21  DEVICE_ADDED     ELAN Touchscreen                  seat0 default group7  cap:t  size 290x162mm ntouches 10 calib
-event24  DEVICE_ADDED     Lenovo EasyCamera: Lenovo EasyC   seat0 default group8  cap:k
-event8   DEVICE_ADDED     HDA Intel PCH Headphone           seat0 default group5  cap:
-event7   DEVICE_ADDED     HDA Intel PCH Mic                 seat0 default group5  cap:
-event4   DEVICE_ADDED     Ideapad extra buttons             seat0 default group9  cap:k
-event3   DEVICE_ADDED     AT Translated Set 2 keyboard      seat0 default group10 cap:k
-event10  DEVICE_ADDED     SynPS/2 Synaptics TouchPad        seat0 default group11 cap:pg  size 87x58mm tap(dl off) left scroll-nat scroll-2fg-edge click-buttonareas-clickfinger dwt-on
-event17  POINTER_MOTION   +0.000s    0.30/  0.00 ( +1.00/ +0.00)
 event17  POINTER_MOTION   +0.103s    0.35/  0.00 ( +1.00/ +0.00)
 event17  POINTER_MOTION   +0.112s    2.70/  0.00 ( +3.00/ +0.00)
 event17  POINTER_MOTION   +0.120s    4.13/  0.00 ( +4.00/ +0.00)
 event17  POINTER_MOTION   +0.128s    3.14/  0.00 ( +3.00/ +0.00)
 event17  POINTER_MOTION   +0.136s    4.19/  0.00 ( +4.00/ +0.00)
 event17  POINTER_MOTION   +0.144s    3.14/  0.00 ( +3.00/ +0.00)
 event17  POINTER_MOTION   +0.151s    7.44/  0.00 ( +6.00/ +0.00)
 event17  POINTER_MOTION   +0.167s    1.11/  0.00 ( +1.00/ +0.00)
 event17  POINTER_MOTION   +0.176s    1.97/  0.00 ( +2.00/ +0.00)
 event17  POINTER_MOTION   +0.184s    1.00/  0.00 ( +1.00/ +0.00)
 event17  POINTER_MOTION   +0.192s    1.00/  1.00 ( +1.00/ +1.00)
 event17  POINTER_BUTTON   +0.240s  BTN_RIGHT (273) pressed, seat count: 1
 event17  POINTER_MOTION   +0.280s    1.87/  1.87 ( +2.00/ +2.00)
 event17  POINTER_MOTION   +0.287s    2.84/  0.95 ( +3.00/ +1.00)
 event17  POINTER_MOTION   +0.295s    4.45/  2.23 ( +4.00/ +2.00)
 event17  POINTER_MOTION   +0.304s    3.20/  1.07 ( +3.00/ +1.00)
 event17  POINTER_MOTION   +0.312s    4.29/  2.14 ( +4.00/ +2.00)
 event17  POINTER_MOTION   +0.320s    4.85/  3.63 ( +4.00/ +3.00)
 event17  POINTER_MOTION   +0.328s    6.27/  1.25 ( +5.00/ +1.00)
 event17  POINTER_MOTION   +0.336s   11.97/  4.49 ( +8.00/ +3.00)
 event17  POINTER_MOTION   +0.344s    4.07/  0.00 ( +3.00/ +0.00)
 event17  POINTER_MOTION   +0.352s    7.09/  0.00 ( +6.00/ +0.00)
 event17  POINTER_MOTION   +0.360s   10.32/  2.95 ( +7.00/ +2.00)
 event17  POINTER_MOTION   +0.367s   13.53/  1.69 ( +8.00/ +1.00)
 event17  POINTER_MOTION   +0.376s    4.15/  0.00 ( +3.00/ +0.00)
 event17  POINTER_MOTION   +0.384s   14.51/  2.90 (+10.00/ +2.00)
 event17  POINTER_MOTION   +0.391s   21.91/  3.98 (+11.00/ +2.00)
 event17  POINTER_MOTION   +0.399s   19.91/  1.99 (+10.00/ +1.00)
 event17  POINTER_MOTION   +0.408s    5.98/  0.00 ( +4.00/ +0.00)
 event17  POINTER_MOTION   +0.415s   20.07/  1.67 (+12.00/ +1.00)
 event17  POINTER_MOTION   +0.423s   32.00/  2.00 (+16.00/ +1.00)
 event17  POINTER_MOTION   +0.432s   32.00/  2.00 (+16.00/ +1.00)
 event17  POINTER_MOTION   +0.440s   32.00/  0.00 (+16.00/ +0.00)
 event17  POINTER_MOTION   +0.448s   15.54/  0.00 ( +8.00/ +0.00)
 event17  POINTER_MOTION   +0.456s   33.02/  0.00 (+17.00/ +0.00)
 event17  POINTER_MOTION   +0.464s   34.00/  0.00 (+17.00/ +0.00)
 event17  POINTER_MOTION   +0.472s   28.00/  0.00 (+14.00/ +0.00)
 event17  POINTER_MOTION   +0.480s   13.44/  0.00 ( +7.00/ +0.00)
 event17  POINTER_MOTION   +0.488s   30.73/  0.00 (+16.00/ +0.00)
 event17  POINTER_MOTION   +0.495s   30.00/  0.00 (+15.00/ +0.00)
 event17  POINTER_MOTION   +0.504s   30.00/  0.00 (+15.00/ +0.00)
 event17  POINTER_MOTION   +0.511s   13.60/  0.00 ( +7.00/ +0.00)
 event17  POINTER_MOTION   +0.519s   29.13/  0.00 (+15.00/ +0.00)
 event17  POINTER_MOTION   +0.528s   32.00/  0.00 (+16.00/ +0.00)
 event17  POINTER_MOTION   +0.536s   30.00/  0.00 (+15.00/ +0.00)
 event17  POINTER_MOTION   +0.544s   34.00/  0.00 (+17.00/ +0.00)
 event17  POINTER_MOTION   +0.552s   15.56/  0.00 ( +8.00/ +0.00)
 event17  POINTER_MOTION   +0.560s   31.12/  0.00 (+16.00/ +0.00)
 event17  POINTER_MOTION   +0.568s   32.00/  0.00 (+16.00/ +0.00)
 event17  POINTER_MOTION   +0.576s   32.00/  0.00 (+16.00/ +0.00)
 event17  POINTER_MOTION   +0.584s   17.70/  0.00 ( +9.00/ +0.00)
 event17  POINTER_MOTION   +0.592s   31.47/  0.00 (+16.00/ +0.00)
 event17  POINTER_MOTION   +0.600s   34.00/  0.00 (+17.00/ +0.00)
 event17  POINTER_MOTION   +0.608s   34.00/  0.00 (+17.00/ +0.00)
 event17  POINTER_MOTION   +0.615s   15.77/  0.00 ( +8.00/ +0.00)
 event17  POINTER_MOTION   +0.623s   33.51/  0.00 (+17.00/ +0.00)
 event17  POINTER_MOTION   +0.632s   32.00/  0.00 (+16.00/ +0.00)
 event17  POINTER_MOTION   +0.639s   36.00/  0.00 (+18.00/ +0.00)
 event17  POINTER_MOTION   +0.647s   19.89/  0.00 (+10.00/ +0.00)
 event17  POINTER_MOTION   +0.656s   35.80/  0.00 (+18.00/ +0.00)
 event17  POINTER_MOTION   +0.664s   38.00/  0.00 (+19.00/ +0.00)
 event17  POINTER_MOTION   +0.672s   36.00/  0.00 (+18.00/ +0.00)
 event17  POINTER_MOTION   +0.680s   30.00/  0.00 (+15.00/ +0.00)
 event17  POINTER_MOTION   +0.688s   11.38/  0.00 ( +6.00/ +0.00)
 event17  POINTER_MOTION   +0.696s   23.54/ -3.62 (+13.00/ -2.00)
 event17  POINTER_MOTION   +0.704s   24.00/ -2.00 (+12.00/ -1.00)
 event17  POINTER_MOTION   +0.712s   17.82/ -5.94 ( +9.00/ -3.00)
 event17  POINTER_MOTION   +0.719s    4.36/  0.00 ( +3.00/ +0.00)
 event17  POINTER_MOTION   +0.728s    3.01/  0.00 ( +3.00/ +0.00)
 event17  POINTER_MOTION   +0.736s    3.00/ -1.00 ( +3.00/ -1.00)
 event17  POINTER_MOTION   +0.743s    1.00/  0.00 ( +1.00/ +0.00)
 event17  POINTER_MOTION   +0.751s    1.00/ -1.00 ( +1.00/ -1.00)
 event17  POINTER_MOTION   +0.760s    2.00/  0.00 ( +2.00/ +0.00)
 event17  POINTER_MOTION   +0.767s    2.00/ -1.00 ( +2.00/ -1.00)
 event17  POINTER_MOTION   +0.776s    1.00/  0.00 ( +1.00/ +0.00)
 event17  POINTER_MOTION   +0.784s    4.12/ -2.06 ( +4.00/ -2.00)
 event17  POINTER_MOTION   +0.792s    1.03/  0.00 ( +1.00/ +0.00)
 event17  POINTER_MOTION   +0.800s    5.22/ -1.04 ( +5.00/ -1.00)
 event17  POINTER_MOTION   +0.808s    4.88/ -2.44 ( +4.00/ -2.00)
 event17  POINTER_MOTION   +0.816s    3.25/ -1.08 ( +3.00/ -1.00)
 event17  POINTER_BUTTON   +0.816s  BTN_RIGHT (273) released, seat count: 0
 event17  POINTER_MOTION   +0.824s    2.00/  0.00 ( +2.00/ +0.00)
 event17  POINTER_MOTION   +0.832s    3.00/ -1.00 ( +3.00/ -1.00)
 event17  POINTER_MOTION   +0.840s    4.22/  0.00 ( +4.00/ +0.00)
 event17  POINTER_MOTION   +0.847s    1.02/  0.00 ( +1.00/ +0.00)
 event17  POINTER_MOTION   +1.328s   -0.89/  0.00 ( -1.00/ +0.00)
 event17  POINTER_MOTION   +1.335s   -0.89/  0.00 ( -1.00/ +0.00)
 event17  POINTER_MOTION   +1.344s   -1.00/  0.00 ( -1.00/ +0.00)
 event17  POINTER_MOTION   +1.384s   -0.91/  0.00 ( -1.00/ +0.00)
 event17  POINTER_MOTION   +1.424s   -0.55/  0.00 ( -1.00/ +0.00)
 event17  POINTER_MOTION   +1.527s   -0.49/ -0.49 ( -1.00/ -1.00)
 event17  POINTER_MOTION   +1.536s    0.00/ -0.86 ( +0.00/ -1.00)
 event17  POINTER_MOTION   +1.544s    1.00/ -2.00 ( +1.00/ -2.00)
 event17  POINTER_MOTION   +1.552s    1.00/ -1.00 ( +1.00/ -1.00)
 event17  POINTER_MOTION   +1.560s    3.30/ -5.50 ( +3.00/ -5.00)
 event17  POINTER_MOTION   +1.568s    5.40/ -5.40 ( +4.00/ -4.00)
 event17  POINTER_MOTION   +1.576s    7.98/-12.76 ( +5.00/ -8.00)
 event17  POINTER_MOTION   +1.584s    4.65/ -6.21 ( +3.00/ -4.00)
 event17  POINTER_MOTION   +1.592s   13.89/-17.36 ( +8.00/-10.00)
 event17  POINTER_MOTION   +1.600s   11.82/-13.79 ( +6.00/ -7.00)
 event17  POINTER_MOTION   +1.607s   13.79/-17.73 ( +7.00/ -9.00)
 event17  POINTER_MOTION   +1.616s    7.37/-11.05 ( +4.00/ -6.00)
 event17  POINTER_MOTION   +1.624s   19.07/-22.88 (+10.00/-12.00)
 event17  POINTER_MOTION   +1.632s   24.00/-20.00 (+12.00/-10.00)
 event17  POINTER_MOTION   +1.640s   26.00/-18.00 (+13.00/ -9.00)
 event17  POINTER_MOTION   +1.648s   26.00/-16.00 (+13.00/ -8.00)
 event17  POINTER_MOTION   +1.656s   11.48/ -5.74 ( +6.00/ -3.00)
 event17  POINTER_MOTION   +1.664s   26.78/-13.39 (+14.00/ -7.00)
 event17  POINTER_MOTION   +1.672s   28.00/-14.00 (+14.00/ -7.00)
 event17  POINTER_MOTION   +1.680s   24.00/-10.00 (+12.00/ -5.00)
 event17  POINTER_MOTION   +1.688s    8.84/ -3.54 ( +5.00/ -2.00)
 event17  POINTER_MOTION   +1.696s    6.41/ -1.28 ( +5.00/ -1.00)
 event17  POINTER_MOTION   +1.704s    5.02/ -3.76 ( +4.00/ -3.00)
 event17  POINTER_MOTION   +1.711s    5.02/ -2.51 ( +4.00/ -2.00)
 event17  POINTER_MOTION   +1.720s    2.15/ -1.08 ( +2.00/ -1.00)
 event17  POINTER_MOTION   +1.728s    2.02/ -3.03 ( +2.00/ -3.00)
 event17  POINTER_MOTION   +1.735s    2.06/ -2.06 ( +2.00/ -2.00)
 event17  POINTER_MOTION   +1.744s    2.00/ -1.00 ( +2.00/ -1.00)
 event17  POINTER_MOTION   +1.752s    2.00/ -2.00 ( +2.00/ -2.00)
 event17  POINTER_MOTION   +1.768s    1.00/ -1.00 ( +1.00/ -1.00)
 event17  POINTER_MOTION   +1.776s    1.00/ -2.00 ( +1.00/ -2.00)
 event17  POINTER_MOTION   +1.792s    1.00/ -1.00 ( +1.00/ -1.00)
 event17  POINTER_MOTION   +1.808s    2.00/ -1.00 ( +2.00/ -1.00)
 event17  POINTER_MOTION   +1.823s    1.00/ -1.00 ( +1.00/ -1.00)
 event17  POINTER_MOTION   +1.832s    1.00/ -1.00 ( +1.00/ -1.00)
 event17  POINTER_MOTION   +1.840s    1.00/ -1.00 ( +1.00/ -1.00)
 event17  POINTER_BUTTON   +2.304s  BTN_LEFT (272) pressed, seat count: 1
 event17  POINTER_BUTTON   +2.400s  BTN_LEFT (272) released, seat count: 0
-event16  KEYBOARD_KEY     +2.665s  *** (-1) pressed
 event16  KEYBOARD_KEY     +2.801s  *** (-1) pressed
bulletmark commented 4 years ago

It is certainly outside of the scope of the current libinput-gestures. It merely intercepts report GESTURE events from your touchpad. It is not clear to me which of the events above you want to intercept and action but conceptually it would be possible of course to write a similar program to libinput-gestures to do what you want. Since this is not an issue with this utility, and I am not planning to add that functionality I am closing this bug sorry.

I use a very basic 3 button mouse but it has forward and back by pressing the scroll wheel left and right. It works well and is cheap!

goggle commented 4 years ago

Ok, thanks.