Sometimes it is not easy to disable/enable touchpad on a laptop running Linux. Certainly that was the case for my new Dell XPS. So, here is what I came up with to make my life easier:

 1 2 3  xinput list | grep -i touchpad | \ awk '{print $6}' | awk -F '=' '{print$2}' | \ xargs -rn 1 -I {} xinput --disable {}
 1 2 3  xinput list | grep -i touchpad | \ awk '{print $6}' | awk -F '=' '{print$2}' | \ xargs -rn 1 -I {} xinput --enable {}
It might then be a good idea to wrap these commands into simple bash -c "<cmd>" and map it to global hotkeys.