Wayland doesn't support xdotool . which means you can't map gestures to keyboard shortcuts. But you can map it into wmctrl via a external script.
- Install https://github.com/bulletmark/libinput-gestures
- Create
~/.config/libinput-gestures.conf with content
swipe_threshold 20
gesture swipe down 3 ~/.config/scripts/wsdown
gesture swipe up 3 ~/.config/scripts/wsup
- Create
~/.config/scripts/wsdown with content
#! /bin/bash
WS=$(wmctrl -d | grep '*' | awk '{print $1}'); wmctrl -s $(($WS - 1))
- Create
~/.config/scripts/wsup with content
#! /bin/bash
WS=$(wmctrl -d | grep '*' | awk '{print $1}'); wmctrl -s $(($WS + 1))
- Make them excecutable
chmod +x ~/.config/scripts/wsdown
chmod +x ~/.config/scripts/wsup
- Restart libinput-gestures
libinput-gestures-setup restart
You can also automate this by cloning the repo https://github.com/HasinduLanka/FreshLinux and running config.gestures.sh script . It will download and install libinput-gestures, configure 3 finger gestures for you.
Make sure to restart the computer after installing libinput-gestures.