This is a simple python script that converts touchpad to graphics tablet
clone this repo
git clone https://github.com/Vaisakhkm2625/touchpaddraw.git
Install these dependencies:
python3
libevdev
python3-evdev
dotool
python main.py
In case auto-selection of devices is not working,
you can use -i
for interactive devices selection menu
also, there is a "toggle-script":
./toggle.sh <device>
@MeexReay's sway config uses it like this:
bindsym $mod+Shift+g exec bash -c "cd $HOME/touchpaddraw && ./toggle.sh touchpad"