bulletmark / libinput-gestures

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

2 finger left/right swipe not detected #322

Closed ghost closed 3 years ago

ghost commented 3 years ago
$ libinput-gestures -l
libinput-gestures: session cinnamon+x11 on Linux-5.13.0-19-generic-x86_64-with-glibc2.34, python 3.9.7, libinput 1.18.1
Hash: 7fdb535fddc8a8f2306c17ccf295e6b9
Gestures configured in ~/.config/libinput-gestures.conf:
swipe left       2 xdotool key alt+Left
swipe right      2 xdotool key alt+Right
swipe left       3 xdotool key ctrl+shift+Tab
swipe right      3 xdotool key ctrl+Tab
swipe up         3 xdotool key ctrl+t
swipe down       3 xdotool key ctrl+w
swipe up         4 xdotool keydown alt + key Tab; sleep 1; xdotool keyup alt
swipe down       4 xdotool key ctrl+d
swipe left       4 xdotool keydown alt key Tab
swipe right      4 xdotool keyup alt
pinch in           xdotool key ctrl+shift+minus
pinch out          xdotool key ctrl+shift+plus
libinput-gestures: device /dev/input/event26: Apple Inc. Magic Trackpad 2
libinput-gestures is installed.
libinput-gestures is set up as a desktop application.
libinput-gestures is not currently running.
libinput-gestures is set to autostart as a desktop application.
libinput-gestures is using custom configuration file.

Describe the issue 3 and 4 finger swipes are detected properly and run commands fine, but 2 finger left/right swipe is not detected:

$ libinput-gestures -d
libinput-gestures: session cinnamon+x11 on Linux-5.13.0-19-generic-x86_64-with-glibc2.34, python 3.9.7, libinput 1.18.1
Hash: 7fdb535fddc8a8f2306c17ccf295e6b9
Gestures configured in ~/.config/libinput-gestures.conf:
swipe left       2 xdotool key alt+Left
swipe right      2 xdotool key alt+Right
swipe left       3 xdotool key ctrl+shift+Tab
swipe right      3 xdotool key ctrl+Tab
swipe up         3 xdotool key ctrl+t
swipe down       3 xdotool key ctrl+w
swipe up         4 xdotool keydown alt + key Tab; sleep 1; xdotool keyup alt
swipe down       4 xdotool key ctrl+d
swipe left       4 xdotool keydown alt key Tab
swipe right      4 xdotool keyup alt
pinch in           xdotool key ctrl+shift+minus
pinch out          xdotool key ctrl+shift+plus
libinput-gestures: device /dev/input/event26: Apple Inc. Magic Trackpad 2
libinput-gestures: SWIPE up 3 [14.110000000000001, -175.87]
   xdotool key ctrl+t
libinput-gestures: SWIPE down 3 [-49.7, 204.57]
   xdotool key ctrl+w
libinput-gestures: SWIPE left 3 [-259.14, 42.019999999999996]
   xdotool key ctrl+shift+Tab
libinput error: event26 - Apple Inc. Magic Trackpad 2: kernel bug: Touch jump detected and discarded.
See https://wayland.freedesktop.org/libinput/doc/1.18.1/touchpad-jumping-cursors.html for details
libinput error: event26 - Apple Inc. Magic Trackpad 2: kernel bug: Touch jump detected and discarded.
See https://wayland.freedesktop.org/libinput/doc/1.18.1/touchpad-jumping-cursors.html for details
libinput error: event26 - Apple Inc. Magic Trackpad 2: kernel bug: Touch jump detected and discarded.
See https://wayland.freedesktop.org/libinput/doc/1.18.1/touchpad-jumping-cursors.html for details
libinput error: event26 - Apple Inc. Magic Trackpad 2: kernel bug: Touch jump detected and discarded.
See https://wayland.freedesktop.org/libinput/doc/1.18.1/touchpad-jumping-cursors.html for details
libinput error: event26 - Apple Inc. Magic Trackpad 2: kernel bug: Touch jump detected and discarded.
See https://wayland.freedesktop.org/libinput/doc/1.18.1/touchpad-jumping-cursors.html for details
libinput error: event26 - Apple Inc. Magic Trackpad 2: WARNING: log rate limit exceeded (5 msgs per 2h). Discarding future messages.
libinput-gestures: SWIPE right 3 [151.23000000000002, -13.559999999999999]
   xdotool key ctrl+Tab

(left and right 2 finger swipes do not generate any response)

bulletmark commented 3 years ago

Please read the libinput documentation on the definition of swipe gestures, i.e. it only applies to 3 or more finger movements.