diff options
author | Peter Osterlund <petero2@telia.com> | 2003-09-14 21:46:28 +0200 |
---|---|---|
committer | Peter Osterlund <petero2@telia.com> | 2006-04-09 04:01:10 +0200 |
commit | 0f0cee77f6cde2df549461c8fa7de6b30359cf74 (patch) | |
tree | 1311944f9a243961a30eea905ffc520f4637abe6 /script | |
parent | d1643a7d781216dd92cf4dc4d2a0da7a40d57258 (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/usbmouse | 19 |
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 + |