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.
I attached this script as the one to be executed when mouse is connected:
#!/bin/sh status status
mouse=`lsusb | grep Mouse`
if [ "$mouse" != "" ]; then
`synclient TouchpadOff=1`
echo "off" > /tmp/touchpad_
else
`synclient TouchpadOff=0`
echo "on" > /tmp/touchpad_
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.