This method was more convenient for me:

To disable the touchpad:

Code:
synclient TouchpadOff=1
To enable the touchpad:

Code:
synclient TouchpadOff=0

And: you can put each on a launcher in your desktop. The result works pretty neat in my case. If you are at your desk with a mouse, or typing, just disable the touchpad.