iberianpig / fusuma

Multitouch gestures with libinput driver on Linux
MIT License
3.67k stars 149 forks source link

Shortcut doesn't work #51

Closed ghost closed 6 years ago

ghost commented 7 years ago

Hi,

Thank you for this program

But I have a problem when I wrote up: shortcut: 'super+shift+w' for the 3 finger it's not work

iberianpig commented 7 years ago

@yoyozaza other events are works so far? Please check fusuma -v and paste the logs with 3finger swipes? And paste your config.yml.

ghost commented 7 years ago

D, [2017-11-01T18:58:11.506409 #31278] DEBUG -- : {:libinput_command=>"stdbuf -oL -- libinput-debug-events --enable-dwt --device /dev/input/event5"} D, [2017-11-01T18:58:12.976678 #31278] DEBUG -- : {:time=>"+1.47s", :action=>"GESTURE_SWIPE_UPDATE", :finger=>"3", :directions=>{:move=>{:x=>"0.31", :y=>"-21.05"}, :zoom=>nil}} D, [2017-11-01T18:58:13.015594 #31278] DEBUG -- : {:time=>"+1.51s", :action=>"GESTURE_SWIPE_UPDATE", :finger=>"3", :directions=>{:move=>{:x=>"5.55", :y=>"-36.16"}, :zoom=>nil}} D, [2017-11-01T18:58:13.066904 #31278] DEBUG -- : {:time=>"+1.56s", :action=>"GESTURE_SWIPE_UPDATE", :finger=>"3", :directions=>{:move=>{:x=>"5.38", :y=>"-21.31"}, :zoom=>nil}} D, [2017-11-01T18:58:13.067131 #31278] DEBUG -- : {:x=>3.746666666666666, :y=>-26.173333333333332} D, [2017-11-01T18:58:13.068971 #31278] DEBUG -- : trigger keyevent: super+shift+w D, [2017-11-01T18:58:13.140525 #31278] DEBUG -- : {:time=>"+1.58s", :action=>"GESTURE_SWIPE_END", :finger=>"3", :directions=>{:move=>{:x=>nil, :y=>nil}, :zoom=>nil}}

and this is my config.yml :

` swipe: 3: left shortcut: 'ctrl+alt+Right' right: shortcut: 'ctrl+alt+Left' up: shortcut: 'super+shift+w' down: shortcut: 'ctrl+alt+Up' 4: left: shortcut: 'alt+Left' right: shortcut: 'alt+Right' up: shortcut: 'super+shift+w' down: shortcut: 'super+w' pinch: in: shortcut: '' out: shortcut: ''

threshold: swipe: 0.1 pinch: 0.1

interval: swipe: 1.0 pinch: 0.1`

ghost commented 7 years ago

Sorry but the display of code doesn't work

ghost commented 7 years ago

But the other events like switch workspace work very well and thank you for this :+1:

Raensul commented 7 years ago

hi! for 4 fingers it works well, but with 3 fingers smthng wrong...

Raensul commented 7 years ago

libinput-list

Device:           SynPS/2 Synaptics TouchPad
Kernel:           /dev/input/event7
Group:            7
Seat:             seat0, default
Size:             106.73x63.39mm
Capabilities:     pointer 
Tap-to-click:     disabled
Tap-and-drag:     enabled
Tap drag lock:    disabled
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   *two-finger edge 
Click methods:    *button-areas clickfinger 
Disable-w-typing: enabled
Accel profiles:   none
Rotation:         n/a

fusuma -v

D, [2017-11-11T16:04:29.557390 #7432] DEBUG -- : Device:           Power Button

D, [2017-11-11T16:04:29.557617 #7432] DEBUG -- : Kernel:           /dev/input/event2

D, [2017-11-11T16:04:29.557746 #7432] DEBUG -- : Group:            1

D, [2017-11-11T16:04:29.557808 #7432] DEBUG -- : Seat:             seat0, default

D, [2017-11-11T16:04:29.557858 #7432] DEBUG -- : Capabilities:     keyboard 

D, [2017-11-11T16:04:29.557903 #7432] DEBUG -- : Tap-to-click:     n/a

D, [2017-11-11T16:04:29.557952 #7432] DEBUG -- : Tap-and-drag:     n/a

D, [2017-11-11T16:04:29.557997 #7432] DEBUG -- : Tap drag lock:    n/a

D, [2017-11-11T16:04:29.558042 #7432] DEBUG -- : Left-handed:      n/a

D, [2017-11-11T16:04:29.558086 #7432] DEBUG -- : Nat.scrolling:    n/a

D, [2017-11-11T16:04:29.558143 #7432] DEBUG -- : Middle emulation: n/a

D, [2017-11-11T16:04:29.558189 #7432] DEBUG -- : Calibration:      n/a

D, [2017-11-11T16:04:29.558236 #7432] DEBUG -- : Scroll methods:   none

D, [2017-11-11T16:04:29.558278 #7432] DEBUG -- : Click methods:    none

D, [2017-11-11T16:04:29.558322 #7432] DEBUG -- : Disable-w-typing: n/a

D, [2017-11-11T16:04:29.558364 #7432] DEBUG -- : Accel profiles:   n/a

D, [2017-11-11T16:04:29.558406 #7432] DEBUG -- : Rotation:         n/a

D, [2017-11-11T16:04:29.558448 #7432] DEBUG -- : 

D, [2017-11-11T16:04:29.558784 #7432] DEBUG -- : Device:           Video Bus

D, [2017-11-11T16:04:29.558833 #7432] DEBUG -- : Kernel:           /dev/input/event4

D, [2017-11-11T16:04:29.558887 #7432] DEBUG -- : Group:            2

D, [2017-11-11T16:04:29.558932 #7432] DEBUG -- : Seat:             seat0, default

D, [2017-11-11T16:04:29.558974 #7432] DEBUG -- : Capabilities:     keyboard 

D, [2017-11-11T16:04:29.559017 #7432] DEBUG -- : Tap-to-click:     n/a

D, [2017-11-11T16:04:29.559058 #7432] DEBUG -- : Tap-and-drag:     n/a

D, [2017-11-11T16:04:29.559100 #7432] DEBUG -- : Tap drag lock:    n/a

D, [2017-11-11T16:04:29.559141 #7432] DEBUG -- : Left-handed:      n/a

D, [2017-11-11T16:04:29.559190 #7432] DEBUG -- : Nat.scrolling:    n/a

D, [2017-11-11T16:04:29.559236 #7432] DEBUG -- : Middle emulation: n/a

D, [2017-11-11T16:04:29.559278 #7432] DEBUG -- : Calibration:      n/a

D, [2017-11-11T16:04:29.559320 #7432] DEBUG -- : Scroll methods:   none

D, [2017-11-11T16:04:29.559361 #7432] DEBUG -- : Click methods:    none

D, [2017-11-11T16:04:29.559403 #7432] DEBUG -- : Disable-w-typing: n/a

D, [2017-11-11T16:04:29.559444 #7432] DEBUG -- : Accel profiles:   n/a

D, [2017-11-11T16:04:29.559486 #7432] DEBUG -- : Rotation:         n/a

D, [2017-11-11T16:04:29.559527 #7432] DEBUG -- : 

D, [2017-11-11T16:04:29.559569 #7432] DEBUG -- : Device:           Video Bus

D, [2017-11-11T16:04:29.559612 #7432] DEBUG -- : Kernel:           /dev/input/event5

D, [2017-11-11T16:04:29.559660 #7432] DEBUG -- : Group:            2

D, [2017-11-11T16:04:29.559704 #7432] DEBUG -- : Seat:             seat0, default

D, [2017-11-11T16:04:29.559751 #7432] DEBUG -- : Capabilities:     keyboard 

D, [2017-11-11T16:04:29.559794 #7432] DEBUG -- : Tap-to-click:     n/a

D, [2017-11-11T16:04:29.559836 #7432] DEBUG -- : Tap-and-drag:     n/a

D, [2017-11-11T16:04:29.559877 #7432] DEBUG -- : Tap drag lock:    n/a

D, [2017-11-11T16:04:29.559918 #7432] DEBUG -- : Left-handed:      n/a

D, [2017-11-11T16:04:29.559960 #7432] DEBUG -- : Nat.scrolling:    n/a

D, [2017-11-11T16:04:29.560005 #7432] DEBUG -- : Middle emulation: n/a

D, [2017-11-11T16:04:29.560047 #7432] DEBUG -- : Calibration:      n/a

D, [2017-11-11T16:04:29.560089 #7432] DEBUG -- : Scroll methods:   none

D, [2017-11-11T16:04:29.560130 #7432] DEBUG -- : Click methods:    none

D, [2017-11-11T16:04:29.560173 #7432] DEBUG -- : Disable-w-typing: n/a

D, [2017-11-11T16:04:29.560214 #7432] DEBUG -- : Accel profiles:   n/a

D, [2017-11-11T16:04:29.560255 #7432] DEBUG -- : Rotation:         n/a

D, [2017-11-11T16:04:29.560296 #7432] DEBUG -- : 

D, [2017-11-11T16:04:29.560342 #7432] DEBUG -- : Device:           Sleep Button

D, [2017-11-11T16:04:29.560386 #7432] DEBUG -- : Kernel:           /dev/input/event1

D, [2017-11-11T16:04:29.560508 #7432] DEBUG -- : Group:            3

D, [2017-11-11T16:04:29.560558 #7432] DEBUG -- : Seat:             seat0, default

D, [2017-11-11T16:04:29.560602 #7432] DEBUG -- : Capabilities:     keyboard 

D, [2017-11-11T16:04:29.560646 #7432] DEBUG -- : Tap-to-click:     n/a

D, [2017-11-11T16:04:29.560688 #7432] DEBUG -- : Tap-and-drag:     n/a

D, [2017-11-11T16:04:29.560730 #7432] DEBUG -- : Tap drag lock:    n/a

D, [2017-11-11T16:04:29.560773 #7432] DEBUG -- : Left-handed:      n/a

D, [2017-11-11T16:04:29.560816 #7432] DEBUG -- : Nat.scrolling:    n/a

D, [2017-11-11T16:04:29.560862 #7432] DEBUG -- : Middle emulation: n/a

D, [2017-11-11T16:04:29.560906 #7432] DEBUG -- : Calibration:      n/a

D, [2017-11-11T16:04:29.560949 #7432] DEBUG -- : Scroll methods:   none

D, [2017-11-11T16:04:29.560997 #7432] DEBUG -- : Click methods:    none

D, [2017-11-11T16:04:29.561042 #7432] DEBUG -- : Disable-w-typing: n/a

D, [2017-11-11T16:04:29.561085 #7432] DEBUG -- : Accel profiles:   n/a

D, [2017-11-11T16:04:29.561368 #7432] DEBUG -- : Rotation:         n/a

D, [2017-11-11T16:04:29.561415 #7432] DEBUG -- : 

D, [2017-11-11T16:04:29.561459 #7432] DEBUG -- : Device:           Logitech USB Optical Mouse

D, [2017-11-11T16:04:29.561502 #7432] DEBUG -- : Kernel:           /dev/input/event6

D, [2017-11-11T16:04:29.561553 #7432] DEBUG -- : Group:            4

D, [2017-11-11T16:04:29.561598 #7432] DEBUG -- : Seat:             seat0, default

D, [2017-11-11T16:04:29.561641 #7432] DEBUG -- : Capabilities:     pointer 

D, [2017-11-11T16:04:29.561683 #7432] DEBUG -- : Tap-to-click:     n/a

D, [2017-11-11T16:04:29.561725 #7432] DEBUG -- : Tap-and-drag:     n/a

D, [2017-11-11T16:04:29.561767 #7432] DEBUG -- : Tap drag lock:    n/a

D, [2017-11-11T16:04:29.561810 #7432] DEBUG -- : Left-handed:      disabled

D, [2017-11-11T16:04:29.561859 #7432] DEBUG -- : Nat.scrolling:    disabled

D, [2017-11-11T16:04:29.561909 #7432] DEBUG -- : Middle emulation: disabled

D, [2017-11-11T16:04:29.561953 #7432] DEBUG -- : Calibration:      n/a

D, [2017-11-11T16:04:29.561996 #7432] DEBUG -- : Scroll methods:   button

D, [2017-11-11T16:04:29.562038 #7432] DEBUG -- : Click methods:    none

D, [2017-11-11T16:04:29.562080 #7432] DEBUG -- : Disable-w-typing: n/a

D, [2017-11-11T16:04:29.562122 #7432] DEBUG -- : Accel profiles:   flat *adaptive

D, [2017-11-11T16:04:29.562165 #7432] DEBUG -- : Rotation:         n/a

D, [2017-11-11T16:04:29.562207 #7432] DEBUG -- : 

D, [2017-11-11T16:04:29.562250 #7432] DEBUG -- : Device:           XiaoMi USB 2.0 Webcam

D, [2017-11-11T16:04:29.562292 #7432] DEBUG -- : Kernel:           /dev/input/event13

D, [2017-11-11T16:04:29.562342 #7432] DEBUG -- : Group:            5

D, [2017-11-11T16:04:29.562386 #7432] DEBUG -- : Seat:             seat0, default

D, [2017-11-11T16:04:29.562451 #7432] DEBUG -- : Capabilities:     keyboard 

D, [2017-11-11T16:04:29.562496 #7432] DEBUG -- : Tap-to-click:     n/a

D, [2017-11-11T16:04:29.562538 #7432] DEBUG -- : Tap-and-drag:     n/a

D, [2017-11-11T16:04:29.562580 #7432] DEBUG -- : Tap drag lock:    n/a

D, [2017-11-11T16:04:29.562623 #7432] DEBUG -- : Left-handed:      n/a

D, [2017-11-11T16:04:29.562665 #7432] DEBUG -- : Nat.scrolling:    n/a

D, [2017-11-11T16:04:29.562703 #7432] DEBUG -- : Middle emulation: n/a

D, [2017-11-11T16:04:29.562719 #7432] DEBUG -- : Calibration:      n/a

D, [2017-11-11T16:04:29.562735 #7432] DEBUG -- : Scroll methods:   none

D, [2017-11-11T16:04:29.562750 #7432] DEBUG -- : Click methods:    none

D, [2017-11-11T16:04:29.562765 #7432] DEBUG -- : Disable-w-typing: n/a

D, [2017-11-11T16:04:29.562781 #7432] DEBUG -- : Accel profiles:   n/a

D, [2017-11-11T16:04:29.562796 #7432] DEBUG -- : Rotation:         n/a

D, [2017-11-11T16:04:29.562811 #7432] DEBUG -- : 

D, [2017-11-11T16:04:29.562826 #7432] DEBUG -- : Device:           AT Translated Set 2 keyboard

D, [2017-11-11T16:04:29.562843 #7432] DEBUG -- : Kernel:           /dev/input/event3

D, [2017-11-11T16:04:29.562862 #7432] DEBUG -- : Group:            6

D, [2017-11-11T16:04:29.562878 #7432] DEBUG -- : Seat:             seat0, default

D, [2017-11-11T16:04:29.562894 #7432] DEBUG -- : Capabilities:     keyboard 

D, [2017-11-11T16:04:29.562910 #7432] DEBUG -- : Tap-to-click:     n/a

D, [2017-11-11T16:04:29.562925 #7432] DEBUG -- : Tap-and-drag:     n/a

D, [2017-11-11T16:04:29.562941 #7432] DEBUG -- : Tap drag lock:    n/a

D, [2017-11-11T16:04:29.562956 #7432] DEBUG -- : Left-handed:      n/a

D, [2017-11-11T16:04:29.562972 #7432] DEBUG -- : Nat.scrolling:    n/a

D, [2017-11-11T16:04:29.562988 #7432] DEBUG -- : Middle emulation: n/a

D, [2017-11-11T16:04:29.563004 #7432] DEBUG -- : Calibration:      n/a

D, [2017-11-11T16:04:29.563020 #7432] DEBUG -- : Scroll methods:   none

D, [2017-11-11T16:04:29.563035 #7432] DEBUG -- : Click methods:    none

D, [2017-11-11T16:04:29.563051 #7432] DEBUG -- : Disable-w-typing: n/a

D, [2017-11-11T16:04:29.563068 #7432] DEBUG -- : Accel profiles:   n/a

D, [2017-11-11T16:04:29.563083 #7432] DEBUG -- : Rotation:         n/a

D, [2017-11-11T16:04:29.563099 #7432] DEBUG -- : 

D, [2017-11-11T16:04:29.563114 #7432] DEBUG -- : Device:           SynPS/2 Synaptics TouchPad

D, [2017-11-11T16:04:29.563130 #7432] DEBUG -- : Kernel:           /dev/input/event7

D, [2017-11-11T16:04:29.563147 #7432] DEBUG -- : Group:            7

D, [2017-11-11T16:04:29.563291 #7432] DEBUG -- : Seat:             seat0, default

D, [2017-11-11T16:04:29.563309 #7432] DEBUG -- : Size:             106.73x63.39mm

D, [2017-11-11T16:04:29.563326 #7432] DEBUG -- : Capabilities:     pointer 

D, [2017-11-11T16:04:29.563342 #7432] DEBUG -- : Tap-to-click:     disabled

D, [2017-11-11T16:04:29.563357 #7432] DEBUG -- : Tap-and-drag:     enabled

D, [2017-11-11T16:04:29.563374 #7432] DEBUG -- : Tap drag lock:    disabled

D, [2017-11-11T16:04:29.563389 #7432] DEBUG -- : Left-handed:      disabled

D, [2017-11-11T16:04:29.563405 #7432] DEBUG -- : Nat.scrolling:    disabled

D, [2017-11-11T16:04:29.563424 #7432] DEBUG -- : Middle emulation: disabled

D, [2017-11-11T16:04:29.563441 #7432] DEBUG -- : Calibration:      n/a

D, [2017-11-11T16:04:29.563456 #7432] DEBUG -- : Scroll methods:   *two-finger edge 

D, [2017-11-11T16:04:29.563472 #7432] DEBUG -- : Click methods:    *button-areas clickfinger 

D, [2017-11-11T16:04:29.563487 #7432] DEBUG -- : Disable-w-typing: enabled

D, [2017-11-11T16:04:29.563502 #7432] DEBUG -- : Accel profiles:   none

D, [2017-11-11T16:04:29.563518 #7432] DEBUG -- : Rotation:         n/a

D, [2017-11-11T16:04:29.563534 #7432] DEBUG -- : 

D, [2017-11-11T16:04:29.563551 #7432] DEBUG -- : Device:           Dell AIO WMI hotkeys

D, [2017-11-11T16:04:29.563567 #7432] DEBUG -- : Kernel:           /dev/input/event8

D, [2017-11-11T16:04:29.563585 #7432] DEBUG -- : Group:            8

D, [2017-11-11T16:04:29.563601 #7432] DEBUG -- : Seat:             seat0, default

D, [2017-11-11T16:04:29.563616 #7432] DEBUG -- : Capabilities:     keyboard 

D, [2017-11-11T16:04:29.563635 #7432] DEBUG -- : Tap-to-click:     n/a

D, [2017-11-11T16:04:29.563651 #7432] DEBUG -- : Tap-and-drag:     n/a

D, [2017-11-11T16:04:29.563666 #7432] DEBUG -- : Tap drag lock:    n/a

D, [2017-11-11T16:04:29.563682 #7432] DEBUG -- : Left-handed:      n/a

D, [2017-11-11T16:04:29.563697 #7432] DEBUG -- : Nat.scrolling:    n/a

D, [2017-11-11T16:04:29.563714 #7432] DEBUG -- : Middle emulation: n/a

D, [2017-11-11T16:04:29.563729 #7432] DEBUG -- : Calibration:      n/a

D, [2017-11-11T16:04:29.563745 #7432] DEBUG -- : Scroll methods:   none

D, [2017-11-11T16:04:29.563760 #7432] DEBUG -- : Click methods:    none

D, [2017-11-11T16:04:29.563776 #7432] DEBUG -- : Disable-w-typing: n/a

D, [2017-11-11T16:04:29.563791 #7432] DEBUG -- : Accel profiles:   n/a

D, [2017-11-11T16:04:29.563806 #7432] DEBUG -- : Rotation:         n/a

D, [2017-11-11T16:04:29.563821 #7432] DEBUG -- : 

D, [2017-11-11T16:04:29.563850 #7432] DEBUG -- : {:libinput_command=>"stdbuf -oL -- libinput-debug-events --enable-dwt "}
swipe:
  3: 
    left: 
      shortcut: 'ctrl+alt+Left'
    right: 
      shortcut: 'ctrl+alt+Right'
    up: 
      shortcut: 'ctrl+Tab'
    down: 
      shortcut: 'ctrl+Tab'
  4:
    left: 
      shortcut: 'super+Left'
    right: 
      shortcut: 'super+Right'
    up: 
      shortcut: 'ctrl+alt+Down'
    down: 
      shortcut: 'super+d'
pinch:
  in:
    shortcut: 'ctrl+plus'
  out:
     shortcut: 'ctrl+minus'

threshold:
  swipe: 0.1
  pinch: 0.1

interval:
  swipe: 1.0
  pinch: 0.1
rmasclef commented 6 years ago

same for me, I tried to add super+shift+w to 3.up & 3.down events but nothing happens :-1: (super+s works though).

@iberianpig any idea ?

rmasclef commented 6 years ago

@iberianpig did you manage to reproduce the problem yet ?

iberianpig commented 6 years ago

@rmasclef No, I couldn't reproduce. My environment is elemnetary OS(based on Ubuntu16.04.1). Does this issue relate on Ubuntu version?

rmasclef commented 6 years ago

Thank you for your reply, I reproduce the bug on Ubuntu 16.04 and 17.10 :)

In order not to be blocked, I changed the default keyboard shortcut with a custom one :D

I hope you'll have time to check that on an Ubuntu os :/

Maybe I can help with debugging ?

rmasclef commented 6 years ago

Ho I forgot to give you the Ubuntu version, I tried on 17.10 and 16.04 :)

rmasclef commented 6 years ago

FYI: I'm gonna test that on 18.04LTS soon :+1:

stale[bot] commented 6 years ago

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.

rmasclef commented 6 years ago

@iberianpig maybe we can add a "workaround" in the readme telling people that they can change the shortcut if they encounter the same issue as I do ?

iberianpig commented 6 years ago

Ok, I'll update README for adding custom config.