summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorPeter Osterlund <petero2@telia.com>2003-09-14 21:46:28 +0200
committerPeter Osterlund <petero2@telia.com>2006-04-09 04:01:10 +0200
commit0f0cee77f6cde2df549461c8fa7de6b30359cf74 (patch)
tree1311944f9a243961a30eea905ffc520f4637abe6 /script
parentd1643a7d781216dd92cf4dc4d2a0da7a40d57258 (diff)
Made it possible to disable the touchpad at runtime. (Patch
from "Jörg Bösner" <ich@joerg-boesner.de>.)
Diffstat (limited to 'script')
-rw-r--r--script/usbmouse19
1 files changed, 19 insertions, 0 deletions
diff --git a/script/usbmouse b/script/usbmouse
new file mode 100644
index 0000000..c2f0dbe
--- /dev/null
+++ b/script/usbmouse
@@ -0,0 +1,19 @@
+#!/bin/bash
+while true
+do
+ if [ -e ~/.touchpad.on ]; then
+ synclient TouchpadOff=0
+ else
+ if [ -e ~/.touchpad.off ]; then
+ synclient TouchpadOff=1
+ else
+ if [ "`grep -e Mouse /proc/bus/usb/devices`" ]; then
+ synclient TouchpadOff=1
+ else
+ synclient TouchpadOff=0
+ fi
+ fi
+ fi
+ sleep 3
+done
+