Hi,
I have a script that lets me disable and re-enable my laptop touchpad.
This is the script:
I have saved the text file as "tt.sh" in /usr/bin.Code:#!/bin/sh if xinput list-props 13 | grep "Device Enabled (143):.*1" >/dev/null then xinput disable 13 notify-send -u low -i mouse "Touchpad disabled" else xinput enable 13 notify-send -u low -i mouse "Touchpad enabled" fi
Thus, entering "tt.sh" in the command line I can toggle between touchpad enabled / disabled.
Trouble is, I use my laptop in different places with different mice. Someimes my touchpad ID is listed as "12" and sometimes as "13". So the script doesn't always work unless I change it, which is cumbersome and somehow defeats the point.
Is there a way round this?
Many thanks.
Bookmarks