I attached this script as the one to be executed when mouse is
connected:

#!/bin/sh
mouse=`lsusb | grep Mouse` 
if [ "$mouse" != "" ]; then
    `synclient TouchpadOff=1`
    echo "off" > /tmp/touchpad_status
else
    `synclient TouchpadOff=0`
    echo "on" > /tmp/touchpad_status
fi

File "/tmp/touchpad_status" is updated only when mouse is connected (either hot 
or cold plugged).
There is no reaction form this script when mouse is disconnected.

It seems that gnome-volume-manager notices only connections of USB mouse
not disconnedctions.

-- 
Option to turn off touch pad when a mouse is attached
https://bugs.launchpad.net/bugs/92175
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug contact for gnome-volume-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to