Auto-disable laptop touchpad when a mouse is detected.
Project description
Linux Touchpad
A simple tool with one job: disable the touchpad on a laptop when a mouse is plugged in.
Requires
Python >= 3.6
python -V # to check
libinput to manage the devices.
Install
Recommended
The easiest way to get it is through the install script. This will add it to your ~/.local/bin
and configure it to run on startup.
curl -sSL https://raw.githubusercontent.com/Zer0897/linux-touchpad/master/install.py | python
Alternatively
It can be done through pip, but you won't get the config setup.
pip install linux-touchpad
Uninstall
# Get the file
curl -sSL https://raw.githubusercontent.com/Zer0897/linux-touchpad/master/install.py > ~/Downloads/install.py
# Make it executable
chmod 777 ~/Downloads/install.py
# Run the uninstaller
python ~/Downloads/install.py --uninstall
Installing Without Startup Behavior
Get the file as shown above, then run:
python ~/Downloads/install.py --no-autostart
Usage
To begin:
linux-touchpad start&
Or if installed with pip:
python -m linux-touchpad start&
While running, this will toggle the touchpad on and off:
linux-touchpad toggle
Tip: Set this command to a keyboard shortcut for maximum convenience
Finally, to stop the process entirely:
linux-touchpad kill
Author
Noah Corona | noah@coronsoftware.net
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for linux_touchpad-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 722392b25e6691e1c8afdfad9edf5e520b894d1f55ad54d7b1e907a1332dce5d |
|
MD5 | ddd0ec3b7cf8a926f0147fa2e7b8b936 |
|
BLAKE2b-256 | 3d56a1f498d61f8ea8f97c6f3aa66eb7da546724da936aea345cfbc88b722995 |