Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

9 lines
323 B

#!/bin/sh
if xinput list-props "MSFT0001:00 06CB:7E7E Touchpad" | grep "Device Enabled ([0-9]*):.*1" >/dev/null
then
xinput disable "MSFT0001:00 06CB:7E7E Touchpad"
notify-send -u low -i mouse "Trackpad disabled"
else
xinput enable "MSFT0001:00 06CB:7E7E Touchpad"
notify-send -u low -i mouse "Trackpad enabled"
fi