How do I create a gesture to dock a window to the right or left?

I installed libinput-gestures and want to create a gesture to dock a window to the right or left. I noticed touchegg can do it, so I tried xdotool and wmctrl, but all I could do is maximizing or minimizing a window. I’m using KDE Plasma. Is this possible?

On KDE, you can create gestures in the shortcuts section and map those gestures to any keyboard action. So, you can map a gesture to the shortcut which docks the window at right or left, for example.

Thanks, but I figured it out. You can use xdotool key super+Right or xdotool key super+Left if you are on Xorg.