#!/bin/bash # # synaptics-switch: switch the touchpad on/off for use with xbindkeys # Copyright (c) 2008 by Silvan Calarco # [ -e /usr/bin/synclient ] || exit 0 eval `/usr/bin/synclient -l |grep TouchpadOff|sed "s| ||g"` [ "$TouchpadOff" = "1" ] && \ /usr/bin/synclient TouchpadOff=0 || /usr/bin/synclient TouchpadOff=1