#!/bin/sh

off=$(synclient -l | awk -F '= ' '/TouchpadOff/{print $2}')

if [ $off = 0 ]; then
    synclient TouchpadOff=1
else
    synclient TouchpadOff=0
fi