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

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