Script to Turn Trackpad On and Off in Ubuntu Linux

Here is a handy script to turn your annoying trackpad On and Off in Ubuntu Linux. Are you sick of having your cursor bounce and jump all around when you type on your Ubuntu Linux Laptop? Plug in a mouse and use this helpful script to turn your trackpad on and off.
Handy Little Script
#/bin/bash ID="$(xinput list | grep TouchPad | awk -F"=" '{print $2}' | awk '{print $1}')" ENABLED="$(xinput list-props 11 | grep Enabled | awk '{print $4}')" if [ $ENABLED -eq 1 ] then xinput set-prop "${ID}" "Device Enabled" 0 else xinput set-prop "${ID}" "Device Enabled" 1 fi

// //