xbindkeys/xbindkeys-synaptics-switch

11 lines
356 B
Plaintext
Raw Normal View History

#!/bin/bash
#
# synaptics-switch: switch the touchpad on/off for use with xbindkeys
# Copyright (c) 2008 by Silvan Calarco <silvan.calarco@mambasoft.it>
#
[ -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