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

[Gesture]"Pinch in & Pinch out" does not work most of the time <Arch><KDE><Surface> #262

Open
2ndBillGates opened this issue Dec 2, 2021 · 2 comments

Comments

@2ndBillGates
Copy link

Describe the bug
Cannot use 3/4 finger pinch in/ out. 3/4 finger Rotate sometimes work.
Pinch in & out works out well on other programs like Libinput-gesture // touchegg

I am using Microsoft Surface Book 2, Arch Linux, KDE Plasma

BTW fusuma-sendkey does not work for me too. When I run fusuma-sendkey LEFTALT+RIGHT
nothing happened. When I insert command into fusuma config, it does not work as well, it show LEFTALT+RIGHT output, but no key is pressed.

To Reproduce
Steps to reproduce the behavior:

  1. Pinch in or Pinch Out
  2. Fusuma debug shows no output
  3. libinput debug-events does detect Pinch

Left: libinput debug-events Right: fusuma
Screenshot_2021-12-02_23 18 55
In the picture shows that Pinch gesture has detect multiple times but fusuma does nothing.

Expected behavior
It works on other Gesture program like, ' libinput-gesture, touchegg....'

I also would like to see future support for GUI & "MacOS three finger drag" without using Xdotool press down. Because it keep request and stress CPU.
Arch packages "libinput-three-finger-drag" seems to does a pretty good job on drag.

Versions

Fusuma: 2.2.0
libinput: 1.19.2
ruby 3.0.2p107

Configuration

# ========= My version ==========

swipe:
  #3:
    #begin:
      #command: xdotool mousedown 1
    #update:
      #command: xdotool mousemove_relative -- $move_x, $move_y
      #interval: 0.01
      #accel: 2
    #end:
      #command: xdotool mouseup 1

  4:
    left:
#      workspace: 'next' # Switch to next workspace
#      command: 'xdotool key --clearmodifiers super+ctrl+Right'  # Move next Desktop
      command: 'xdotool key alt+Right' # History forward
#      sendkey: "LEFTALT+RIGHT" # history back
      keypress:
        LEFTSHIFT:
          window: 'next' # Move window to next workspace
        LEFTMETA:
          command: 'xdotool key --clearmodifiers super+ctrl+Left' # Move window to left side

    right:
#      workspace: 'prev' # Switch to previous workspace
#      command: 'xdotool key --clearmodifiers super+ctrl+Left'  # Move to Left Desktop
      command: 'xdotool key alt+Left' # History back
#      sendkey: "LEFTALT+LEFT" # history forward
      keypress:
        LEFTSHIFT:
          window: 'prev' # Move window to previous workspace
        LEFTMETA:
          command: 'xdotool key --clearmodifiers super+ctrl+Right'  # Move window to right side
    up:
#      command: 'xdotool key Control_L+F10' # Workspace overview
      workspace: 'next' # Switch to next workspace
#      command: 'xdotool key --clearmodifiers alt+Right'  # go to Previous
#      command: 'xdotool key --clearmodifiers super+ctrl+Down'  # Move to Down Desktop
      keypress:
        LEFTMETA:
          window:
            maximized: 'toggle' # Toggle Maximize/Unmaximize Window
    down:
      command: 'xdotool key Shift_L+Alt_L+Tab' #aaaaa
      workspace: 'prev' # Switch to next workspace
      #command: 'xdotool key --clearmodifiers alt+Right'  # go to Next
      #command: 'xdotool key --clearmodifiers super+ctrl+Up'  # Move to Up Desktop
      keypress:
        LEFTMETA:
          window: 'close' # Close window



#pinch:
  ##2:
    ##in:
      ##command: 'xdotool key Control_L+F10' # Zoom in
    ##out:
      ##command: 'xdotool key super+d' # Zoom out
  ##3:
    ##in:
      ##command: 'xdotool keydown ctrl click 4 keyup ctrl' # Zoom in
    ##out:
      ##command: 'xdotool keydown ctrl click 5 keyup ctrl' # Zoom out
  #3:
    #in:
      #command: 'xdotool key Super_L+Tab' # Window overview
    #out:
      #command: 'xdotool key --clearmodifiers alt+shift+F1' # Workspace overview

  #4:
    #in:
      #command: 'xdotool key Super_L+Tab' # Window overview
    #out:
      #command: 'xdotool key --clearmodifiers alt+shift+F1' # Workspace overview

pinch:
  2:
    in:
      command: "echo 2\ finger\ pinch\ in"
    out:
      command: "echo 2\ finger\ pinch\ out"
  3:
    in:
      command: "echo 3\ finger\ pinch\ out"
    out:
      command: "echo 3\ finger\ pinch\ out"
  4:
    in:
      command: "echo 4\ finger\ pinch\ in"
    out:
      command: "echo 4\ finger\ pinch\ out"

#rotate:
  #3:
    #clockwise:
      #command: 'xdotool key XF86MonBrightnessUp' # Brightness up
    #counterclockwise:
      #command: 'xdotool key XF86MonBrightnessDown' # Brightness down

#rotate:
  #3:
    #clockwise:
      #command: 'xdotool key Super_L+Tab' # Window overview
    #counterclockwise:
      #command: 'xdotool key --clearmodifiers alt+shift+F1' # Workspace overview
  #4:
    #clockwise:
      #command: 'xdotool key Super_L+Tab' # Window overview
    #counterclockwise:
      #command: 'xdotool key --clearmodifiers alt+shift+F1' # Workspace overview

plugin:
  inputs:
    libinput_command_input: # options for lib/plugin/inputs/libinput_command_input
      enable-tap: true # click to tap
      enable-dwt: true # disable tap while typing
      show-keycodes: true # https://github.com/iberianpig/fusuma-plugin-keypress#add-show-keycode-option
      #executors:
        #sendkey_executor:
          #device_name: 'Microsoft Surface Keyboard'
@stale
Copy link

stale bot commented Apr 27, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 27, 2022
@iberianpig
Copy link
Owner

Note. The reason pinch operation is not recognized well may be the same as following Issue.
#291

@stale stale bot removed the wontfix label Mar 25, 2023
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