JoseExposito / touchegg

Linux multi-touch gesture recognizer
GNU General Public License v3.0
3.61k stars 167 forks source link

Use dotool or ydotool to support Wayland? #656

Open cyanescent opened 6 months ago

cyanescent commented 6 months ago

Is your feature request related to a problem? Please describe

I am switching to Wayland, and the gestures with touchegg+touché working on X11 only was the single thing preventing me from switching. However, I have noticed that some gestures still work in Wayland (show or switching workspaces from key shortcut for instance, or sending a command), but other not (closing Wayland windows).

Describe the solution you'd like

The "Wayland windows not closing" issue is solved when sending the command: echo key alt+F4 | dotool from this package. The second xdotool-alternative "ydotool" should also work.

Therefore, every non-working preset in Touché can be replaced by an equivalent dotool command to work in Wayland.

Describe alternatives you've considered

I have tried fusuma as an alternative to touchegg, but this is not relevant to my problem. I have also tried but failed to install ydotool, so I have used dotool instead.

Additional context

I am using touchegg+touché from the Wayland session of KDE Plasma 6 on Endeavour OS (arch).

JoseExposito commented 5 months ago

You can replace most of the actions with keyboard shortcuts and tools like ydotool. However, there are some features that won't work. The most noticeable one is animations.

Wayland is a bit of trial and error and at the moment, there is not a good way to make Touchégg work... Unfortunately, I don't think there is going to be a solution in the future :S

cyanescent commented 5 months ago

I understand the Wayland headache is not that easily overcome. Indeed, the animation to visualize / confirm the gesture is a really nice feature. Thank you for your reply!

genderneutralnoun commented 2 months ago

I really, really don't mean to be rude, but... why can't there just be wayland support without the animations?