home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / doc / xserver-xorg-input-synaptics / script / usbmouse < prev   
Encoding:
Text File  |  2006-04-16  |  407 b   |  19 lines

  1. #!/bin/bash
  2. while true
  3. do
  4.     if [ -e ~/.touchpad.on ]; then 
  5.         synclient TouchpadOff=0
  6.     else
  7.         if [ -e ~/.touchpad.off ]; then 
  8.             synclient TouchpadOff=1
  9.         else
  10.             if [ "`grep -e Mouse /proc/bus/usb/devices`" ]; then
  11.                 synclient TouchpadOff=1
  12.             else
  13.                 synclient TouchpadOff=0
  14.             fi
  15.         fi
  16.     fi  
  17.     sleep 3
  18. done
  19.