Trick to disable the touchpad on Linux via cli

I was a Mac user, or I am, but my Mac Pro now is in hands of my wife; and she gave me her Asus Laptop, and what I did was to install my old Linux Slackware 14.1. Buuut I dislike a lot this touch-pad, since it doesn’t let you write comfortably while its ON so I looked around for a way of disabling it whenever I like to, and to do it I used xinput command an created following alias:

alias d_tp=”xinput set-prop `xinput | grep -i Touchpad | cut -d= -f2| awk ‘{print $1}’` “Device Enabled” 0 “

Now every time I just want to disable it, I just type d_tp in my bash shell, and thats it 🙂

Cheers!