| Crates.io | gestures |
| lib.rs | gestures |
| version | 0.6.0 |
| created_at | 2022-11-26 17:59:01.579675+00 |
| updated_at | 2023-03-12 16:46:12.571041+00 |
| description | Libinput based touchpad gestures program |
| homepage | |
| repository | https://github.com/riley-martin/gestures |
| max_upload_size | |
| id | 723390 |
| size | 49,115 |
This is a program for intercepting touchpad gestures and executing commands based on them.
Unlike some alternatives, it directly uses the libinput api rather than parsing the output
of libinput debug-events.
gestures is able to handle libinput swipe events; not only vertical and horizontal but diagonal
as well.
See config.md for configuration instructions.
Linux. The testing workflow runs on Ubuntu and I test it myself on Artix Linux, but it should work on any distro if it uses the
libinput touchpad driver rather than the older synaptics driver.
Note: If your DE/WM has its own touchpad gestures system, it will most likely need to be disabled to
prevent conflicts.
You may need to install libudev and libinput, or their equivalant for your distro, and possibly the dev versions as well.
If you have cargo installed, simply use cargo install gestures
Clone the repo
git clone https://github.com/riley-martin/gestures && cd gesturesBuild
cargo build --releaseCopy ./target/release/gestures to a convenient place and execute it
You can start gestures in your .xinitrc or other startup files (like sway config file, for example)
Drop examples/gestures.service into ~/.config/systemd/user/gestures.service
and modify it for your system (mainly the "$HOME" environment variable and the ExecStart will need changed).
To have it start automatically, run systemctl --user enable --now gestures.service.
I haven't used any other init systems, but the service is quite simple so it should be easy to modify for other systems.
Here are some alternatives with similar features.
libinput-gestures
Parses output of libinput debug-events rather than using libinput api.
gebaar Only supports swipe gestures
gebaar-libinput-fork Fork of gebaar which supports other gestures
fusuma
Also parses libinput debug-events output