twofing is a daemon which runs in the background and recognizes two-finger gestures performed on a touchscreen and converts them into mouse and keyboard events. This way, such gestures can be used in almost all existing applications (even ones where you wouldn’t expect it, like Wine applications) without having to modify them.
For tagged releases (v*), CI publishes:
- architecture-specific
.debpackages - a flat APT repository (
Packages,Packages.gz,Release)
You can consume the stable flat repository from the apt release tag:
echo "deb [trusted=yes] https://github.com/twofing/twofing/releases/download/apt ./" | \
sudo tee /etc/apt/sources.list.d/twofing-github.list
sudo apt-get update
sudo apt-get install twofingNote: the published repository is currently unsigned, so
trusted=yesis required.
sudo apt-get install \
build-essential \
libx11-dev \
libxtst-dev \
libxi-dev \
x11proto-randr-dev \
libxrandr-dev \
xserver-xorg-input-evdev \
xserver-xorg-input-evdev-dev
make
sudo make install
Create a x11 conf file and att the following section to it
Section "InputClass"
Identifier "calibration"
Driver "evdev"
MatchProduct "{{ put your device name here, get it with xinput list }}"
Option "EmulateThirdButton" "1"
Option "EmulateThirdButtonTimeout" "750"
Option "EmulateThirdButtonMoveThreshold" "30"
EndSection
An install script for the Argonaut M7 (courtesy of Mikhail Grushinskiy) can be found here: https://github.com/bareboat-necessities/my-bareboat/blob/master/twofing/rpi_twofing_install.sh