#!/bin/sh curVal=`synclient -l | grep 'TouchpadOff' | sed 's/.*\(.\)$/\1/'` if [ "$curVal" = "0" ]; then synclient touchpadoff=1 else synclient touchpadoff=0 fi