Properly set gestures on KDE Plasma
Do you have a pretty delicious precision touchpad and you want it to shine in KDE? Here is how.

The first thing we are going to do is install libinput-gestures with

sudo apt-get install xdotool wmctrl libinput-tools -y

now clone the project from github

git clone https://github.com/bulletmark/libinput-gestures.git && cd gestures

sudo make install

start the deamon with

libinput-gestures-setup autostart

add your current user to the input group to read the touchpad input

sudo gpasswd -a $USER input

log out and login againt to compleate the install

NOTE: on arch there is a AUR package that will do the installation all for you

Now we want to install the Gestures app in order to configure all with a simple GUI right?

git clone https://gitlab.com/cunidev/gestures && cd gestures

sudo python3 setup.py install

Open the app, click on the + and here we have some choices. Basically we could set some xdotool commands to emulate keyboard shortcuts, but sometimes they could cause troubles, for example if an app is locking a key or if you are in an input filed. To get around this issue, we can submit commands to kwin directly. In a terminal type:

qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.shortcutNames

those are all the commands available; to select Window Close for example, enter the following

qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut “Window Close”

that is it. thanks to this reddit user for the commands
[]
['Gestures', 'Linux', 'Ubuntu', 'Libinput', 'Kde']