11 lines
356 B
Bash
11 lines
356 B
Bash
#!/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
|