Could KDE add touchpad gestures and operational logic like GNOME?

Hello developers,I am using Plasma 6.2.5 and GNOME 48-Beta.I found KDE Plasma performs perfectly on both animations and performance,but I found these functions on GNOME might be more elegant and efficient:
1.Touchpad gestures on GNOME Wayland (You can swipe up using three fingers to switch between Desktop,Overview,App Grid) is more elegant
2.Using Super key switch between Desktop,Overview,double press super key could switch to App Grid is more efficient and elegant(pressing esc button could return back to prior operation.).

If these could be applied on KDE,it will make KDE Plasma more compatible with GNOME and more elegant.Could developers add these to Plasma?Thank you for your hard work!

1 Like

This.
New KDE Plasma user here, coming from Gnome due to stability issues with GPU setup.
I would really really appreciate gnome-like gestures when it comes to switching context or applications.
Cheers!

I can do 3 and 4 finger swipes to change desktops and get different overviews of open apps. And all keyboard shortcuts are customizable and by the looks of it, also scriptable, so it should be possible to get everything OP is asking for.

1 Like

Mind you please describe hot to get that functionality? I’m really new in the environment and I can’t find anything about that in the touchpad section of settings. (of course, neither in keyboard shortcuts)

Yes, I looked around and couldnt find the swipe stuff, internet said is was hard coded, do you use wayland or X11? You can check with: echo $XDG_SESSION_TYPE
I use Wayland and cant really remember but I think it has always just worked. Maybe try installing libinput-gestures, or xf86-input-synaptics if you are using X11.
Keyboard shortcuts are in SystemSettings>Keyboard>Shortcuts

Actually installing the xf86-input-synaptics package was maybe not a good idea according to internet, looks like its outdated. I tried logging in to a X11 session and the swipe stuff did not work for me either. Tried installing libinput-gestures, but it seems like it required a little configuration and I do not have time now. At this point I’m just guessing, so I will just say that I hope you figure it out, and sorry I could not be of more help. I will post here if I find the solution at a later time.

The default libinput-gestures configuration file exists at /etc/libinput-gestures.conf
but a user can create a personal custom configuration file at
~/.config/libinput-gestures.conf.

OK looks like the libinput-gestures package made it work under X11, at least it did for me.
I used the Arch AUR package libinput-gestures-qt to get a real nice GUI for the configuring, there where lots of options, and also keyboard-shortcuts could be mapped to swipes.
But it possible to just use the config file.
Here is my basic config file to put in ~/.config/libinput-gestures.conf .
It changes desktops with 3 finger up/down/right/left swipe. And does some overview stuff on 4 finger up/down.


#####  libinput-gestures config file, put in:  ~/.config/libinput-gestures.conf

# Swipe threshold (0-100)
swipe_threshold 5

# Gestures
gesture swipe up 3 qdbus org.kde.kglobalaccel /component/kwin invokeShortcut "Switch One Desktop Up"
gesture swipe down 3 qdbus org.kde.kglobalaccel /component/kwin invokeShortcut "Switch One Desktop Down"
gesture swipe left 3 qdbus org.kde.kglobalaccel /component/kwin invokeShortcut "Switch One Desktop to the Left"
gesture swipe right 3 qdbus org.kde.kglobalaccel /component/kwin invokeShortcut "Switch One Desktop to the Right"
gesture swipe up 4 qdbus org.kde.kglobalaccel /component/kwin invokeShortcut "Grid View"
gesture swipe down 4 qdbus org.kde.kglobalaccel /component/kwin invokeShortcut "Cycle Overview"

Just remember to restart the service after config change to activate the new settings. (It’s in the file toolbar under “Service” if you are in the GUI, or you can just do the cmd:
libinput-gestures-setup restart
Check status with libinput-gestures-setup status
HERE is the Github file with all commands and instructions.

2 Likes

My brother I thank you very much for your detailed explanation. I proceeded to give KDE plasma a try on my laptop and I did in fact have the same gestures you’ve been mentioning. I must’ve f’d up something in the desktop install or configurations (maybe old, unwanted, configurations are still lingering) because despite being on wayland exactly like the installation on the laptop, gestures won’t work as expected.
Anyway, again, thank you very much for your help :slight_smile: Much apprecated

1 Like

@user69 so it doesn’t look like there is a way to customize touchpad gestures when using wayland, right?

I haven’t tried myself, because I like the defaults, but the libinput-gestures package is supposed to work under Wayland as well, it’s mentioned on the Github page linked above.
(I never use X11 anymore so I just deleted libinput-gestures after I did the experiment above to help X11 users)