Install xdotool
and libinput-gestures
:
sudo pacman -S xdotool libinput-gestures
Follow these steps to configure libinput-gestures
:
sudo gpasswd -a <user_name> input #add user in input group
libinput-gestures-setup desktop #set up the application using your [DE](https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html)
libinput-gestures-setup autostart #enable the app to start automatically in the background
libinput-gestures-setup start #start the app immediately in the background:
Make a file ~/.config/libinput-gestures.conf
and add these contents:
# Go back/forward in chrome
gesture: swipe right 3 xdotool key Alt+Left
gesture: swipe left 3 xdotool key Alt+Right
# Zoom in / Zoom out
gesture: pinch out xdotool key Ctrl+plus
gesture: pinch in xdotool key Ctrl+minus
# Switch between desktops
gesture: swipe left 4 xdotool set_desktop --relative 1
gesture: swipe right 4 xdotool set_desktop --relative -- -1
Reboot