#!/bin/bash if synclient -l | grep -c 'TouchpadOff.*=.*0' > /dev/null; then synclient touchpadoff=1 else synclient touchpadoff=0 fi