#!/bin/bash
export LC_ALL=C
TOGGLE=$HOME/.toggle
TOUCHPAD_ID=`xinput list | grep "Touchpad" | sed -n -e 's/^.*id=//p'|cut -f1`
if xinput list $TOUCHPAD_ID | grep -q 'This device is disabled'; then
xinput enable $TOUCHPAD_ID
else
xinput disable $TOUCHPAD_ID
fi