I don’t like Windows much, but I loved Windows 11 sound volume control via three-finger touch pad gestures, so I ported that behaviour to Ubuntu 22.04.
The script [TVC] listens to events from a touchpad device, detects three-finger taps and modifies the sound volume depending on the vertical scroll direction.
Installation
- Download the script from here and save it in a suitable location
- Make the script executable:
chmod u+x touchpad-volume-control.sh
- Install evtest [EVT]
- Edit the script, replacing the touchpad_device variable with the device path. Again, see [EVT] for instructions how to find the right device
- Make the device readable for your user, eg:
sudo chmod a+r /dev/input/event7
Running the script
You can run the script any way you want, but it has to be run by the logged in user. A system user or root won’t do. I run it as a startup application [STA]. Also remember to make the touchpad event device readable, eg. through a system start-up script.
[TVC] Touchpad volume control
https://github.com/ggeorgovassilis/linuxscripts/tree/master/touchpad-volume-control
[EVT] evtest
https://wiki.ubuntu.com/DebuggingTouchpadDetection/evtest
[STA] Ubuntu startup applications
https://help.ubuntu.com/stable/ubuntu-help/startup-applications.html.en