iberianpig / fusuma-plugin-sendkey

Fusuma plugin that sending virtual keyboard events
MIT License
71 stars 2 forks source link

some key combinations dont work #29

Closed Harryl7 closed 1 year ago

Harryl7 commented 1 year ago

I tried to set swipe-3-down for LEFTCTRL+LEFTMETA+D to show desktop, but it seems not to work on my ubuntu 22.04. Usually only the first try works and everything else fails :(

For the unsuccessful cases, I saw a quick flash that the thumbnail of the current application is located in the upper left corner of the screen and occupies about 1/4 of the screen size.

My logs and config.yml are as follows, there should not be anything wrong I suppose.

$ fusuma
I, [2023-01-08T17:47:29.996291 #17014]  INFO -- : reload config: /home/harry/.config/fusuma/config.yml
I, [2023-01-08T17:47:30.030369 #17014]  INFO -- : ---------------------------------------------
I, [2023-01-08T17:47:30.030766 #17014]  INFO -- : Fusuma: 2.5.1
I, [2023-01-08T17:47:30.031809 #17014]  INFO -- : libinput: 1.20.0
I, [2023-01-08T17:47:30.031839 #17014]  INFO -- : ruby 3.0.2p107
I, [2023-01-08T17:47:30.032918 #17014]  INFO -- : OS: Linux 5.15.0-57-generic #63-Ubuntu SMP Thu Nov 24 13:43:17 UTC 2022
I, [2023-01-08T17:47:30.033784 #17014]  INFO -- : Distribution: Ubuntu 22.04.1 LTS \n \l
I, [2023-01-08T17:47:30.034763 #17014]  INFO -- : Desktop session: ubuntu wayland
I, [2023-01-08T17:47:30.034786 #17014]  INFO -- : ---------------------------------------------
I, [2023-01-08T17:47:30.034804 #17014]  INFO -- : Enabled Plugins: 
I, [2023-01-08T17:47:30.034928 #17014]  INFO -- :   Fusuma::Plugin::Buffers::GestureBuffer
I, [2023-01-08T17:47:30.034941 #17014]  INFO -- :   Fusuma::Plugin::Buffers::TimerBuffer
I, [2023-01-08T17:47:30.034953 #17014]  INFO -- :   Fusuma::Plugin::Detectors::HoldDetector
I, [2023-01-08T17:47:30.034964 #17014]  INFO -- :   Fusuma::Plugin::Detectors::PinchDetector
I, [2023-01-08T17:47:30.034977 #17014]  INFO -- :   Fusuma::Plugin::Detectors::RotateDetector
I, [2023-01-08T17:47:30.034988 #17014]  INFO -- :   Fusuma::Plugin::Detectors::SwipeDetector
I, [2023-01-08T17:47:30.034998 #17014]  INFO -- :   Fusuma::Plugin::Events::Records::ContextRecord
I, [2023-01-08T17:47:30.035008 #17014]  INFO -- :   Fusuma::Plugin::Events::Records::GestureRecord
I, [2023-01-08T17:47:30.035021 #17014]  INFO -- :   Fusuma::Plugin::Events::Records::IndexRecord
I, [2023-01-08T17:47:30.035031 #17014]  INFO -- :   Fusuma::Plugin::Events::Records::TextRecord
I, [2023-01-08T17:47:30.035040 #17014]  INFO -- :   Fusuma::Plugin::Executors::CommandExecutor
I, [2023-01-08T17:47:30.035052 #17014]  INFO -- :   Fusuma::Plugin::Executors::SendkeyExecutor
I, [2023-01-08T17:47:30.035062 #17014]  INFO -- :   Fusuma::Plugin::Filters::LibinputDeviceFilter
I, [2023-01-08T17:47:30.035075 #17014]  INFO -- :   Fusuma::Plugin::Inputs::LibinputCommandInput
I, [2023-01-08T17:47:30.035086 #17014]  INFO -- :   Fusuma::Plugin::Inputs::TimerInput
I, [2023-01-08T17:47:30.035094 #17014]  INFO -- :   Fusuma::Plugin::Parsers::LibinputGestureParser
I, [2023-01-08T17:47:30.035107 #17014]  INFO -- : ---------------------------------------------
I, [2023-01-08T17:47:30.905049 #17014]  INFO -- : {:sendkey=>"LEFTCTRL+LEFTMETA+D"}
I, [2023-01-08T17:47:39.514939 #17014]  INFO -- : {:sendkey=>"LEFTCTRL+LEFTMETA+D"}
I, [2023-01-08T17:47:40.581447 #17014]  INFO -- : {:sendkey=>"LEFTCTRL+LEFTMETA+D"}
swipe:
  4:
    up:
      sendkey: "LEFTMETA+A"
  3:
    down:
      sendkey: "LEFTCTRL+LEFTMETA+D" # Desktop
Harryl7 commented 1 year ago

thanks a lot !

Harryl7 commented 1 year ago

PS: fusuma-sendkey LEFTCTRL+LEFTMETA+D works well in shell

iberianpig commented 1 year ago

I am suspecting that something is wrong with the native three-finger swipe gesture on Gnome Wayland and it is causing strange behavior.

Please try swiping down with four fingers in the following settings

swipe:
  4:
    up:
      sendkey: "LEFTMETA+A"
    down:
      sendkey: "LEFTCTRL+LEFTMETA+D" # Desktop
Harryl7 commented 1 year ago

Yeah, that's much better. Thanks!