I often make a mess touching the touchpad with my palms as I touch type. On the other hand, I tend to work without a USB mouse and sometimes need the touchpad. Furthermore, my current work laptop (Dell 5510) in spite of a hefty price tag doesn’t feature a hardware touchpad toggle.
Solution: provide a simple shell command to toggle the touchpad state:
tt
Install system-wide:
sudo -H pip3 install --upgrade touchpad
The package depends on xinput
to do all the work:
sudo apt install xinput