1.4 KiB
1.4 KiB
How to add touchpad gestures on Arch Linux and KDE Plasma
Following this very old tutorial I wanted to see if I could create a touchpad gesture on Arch Linux and KDE Plasma 6. https://www.lorenzobettini.it/2017/02/touchpad-gestures-in-linux-kde-with-libinput-gestures/
My goal was to have a similar gesture to macOS's three finger swipe up to open so-called Mission Control, just like the application overview on Plasma (default shortcut is Meta+W).
- Install the
libinput-gestures
package from the AUR: https://aur.archlinux.org/packages/libinput-gestures (I use yay for that.
# yay -S libinput-gesture
- Install xdotool to bind gestures to virtual key strokes and/or optionally wmctrl for libinput-gestures internal commands.
# pacman -S xdotool wmctrl
- Add the current user to the input group:
# gpasswd -a $USER input
- Start libinput-gestures and make it autostart at login:
$
libinput-gestures-setup autostart start
- Copy the default config file to your $HOME.
# cp /etc/libinput-gestures.conf ~/.config/libinput-gestures.conf
- Edit the file and add a gesture. For example the following:
gesture swipe up 3 xdotool key super+w
- Restart libinput-gestures:
$
libinput-gestures-setup restart
- Now when swiping up on your touchpad using three finger, xdotool is pressing the Super- or Meta-Key and "W", whih opens the application overview.