touchoff 151 B

1234567
  1. #!/bin/sh
  2. declare -i ID
  3. ID=`xinput list | grep -Eio 'Touchpad\s*id\=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'`
  4. xinput disable $ID
  5. echo "Touchpad disabled"