#!/bin/sh VAL=$(synclient -l | grep TapButton1 | sed 's/.*= //') VAL=$((1 - $VAL)) synclient TapButton1=$VAL