iberianpig / fusuma

Multitouch gestures with libinput driver on Linux
MIT License
3.63k stars 146 forks source link

Pinch in gesture not recognized in Popos 20.04 (Ubuntu 20.04) #184

Closed john-ghatas closed 4 years ago

john-ghatas commented 4 years ago

Describe the bug Pinch in gesture is not recognized

To Reproduce Steps to reproduce the behavior:

  1. Run fusuma command in the terminal
    fusuma
  2. Pinch out, it shows up in the debugger
  3. Pinch in, it doesn't show up in the debugger

Expected behavior Pinching out works as expected, pinching in does not

Versions You can get this information from copy and paste the output of fusuma --version from the command line. Also, please include the OS and what version of the OS you're running. image

Additional context Any additional context, your ~/.config/fusuma/config.yml or data that might be necessary to reproduce the issue. The current setup looks like this

swipe:
  3:
    left:
      command: "xdotool key alt+Right" # History forward 
    right:
      command: "xdotool key alt+Left" # History back
    up:
      command: "xdotool key ctrl+Super+Down" # Switch to next workspace
    down:
      command: "xdotool key ctrl+Super+Up" # Switch to previous workspace

  4:
    up:
      command: "xdotool key super" # Activity
    down:
      command: "xdotool key super" # Activity

pinch:
  2: 
    in:
      command: "xdotool keydown ctrl click 4 && xdotool keyup ctrl" # threshold: 0.5, interval: 0.5
  2: 
    out:
      command: "xdotool keydown ctrl click 5 keyup ctrl" # threshold: 0.5, interval: 0.5

threshold:
  pinch: 0.5

interval:
  swipe: 0.75
  pinch: 0.5
iberianpig commented 4 years ago

Could you also check your log of fusuma?

You can find a line including reload config: /path/to/your/config.yml.

Fusuma use the config reloaded last.

$ iberianpig@iberianpig-XPS-13-9360:~$ fusuma
I, [2020-03-03T13:59:03.837509 #22169]  INFO -- : reload config : /home/iberianpig/.config/fusuma/config.yml   #← THIS IS CONFIG FILE USING FUSUMA
john-ghatas commented 4 years ago

Yes, all other gestures are functioning fine as well :) image

john-ghatas commented 4 years ago

P.S. This is the case on both my XPS 7590 and Inspiron 5490

iberianpig commented 4 years ago

I got it. You have a duplicate key.

delete line 2: last

swipe:
  3:
    left:
      command: "xdotool key alt+Right" # History forward 
    right:
      command: "xdotool key alt+Left" # History back
    up:
      command: "xdotool key ctrl+Super+Down" # Switch to next workspace
    down:
      command: "xdotool key ctrl+Super+Up" # Switch to previous workspace

  4:
    up:
      command: "xdotool key super" # Activity
    down:
      command: "xdotool key super" # Activity

pinch:
  2: 
    in:
      command: "xdotool keydown ctrl click 4 && xdotool keyup ctrl" # threshold: 0.5, interval: 0.5
-  2: 
    out:
      command: "xdotool keydown ctrl click 5 keyup ctrl" # threshold: 0.5, interval: 0.5

threshold:
  pinch: 0.5

interval:
  swipe: 0.75
  pinch: 0.5
john-ghatas commented 4 years ago

Awesome, that worked. Thanks for the help :D, closing the issue now

john-ghatas commented 4 years ago

I copied the config from the README, it showed the double key image

iberianpig commented 4 years ago

Thank you for reporting. I wrote invalid config.yml. I will fix soon :+1: