On Mon, Jan 21, 2008 at 11:48:16AM +0100, Eric Böse-Wolf wrote:
> Hello everybody,
> 
[question is how to deactivate mouse temporarily]

FWIW, to toggle the touchpad on my laptop (Fujitsu-Siemens lifebook S series 
running Fedora Core 5) I use

kpress("F12", "ioncore.exec_on(_, 'touchpad')")

in the WScreen context bindings, where ~/bin/touchpad is the following

---------------------------------------
#!/bin/bash

state=`synclient -l | grep TouchpadOff | cut -d "=" -f 2`

if [ $state = '0' ] ; then
    synclient TouchpadOff=1
elif [ $state = '1' ] ; then
    synclient TouchpadOff=0
else
    echo "$(basename $0): failed to determine current state of touchpad"
    exit 1
fi
--------------------------------------

This seems to work, but I'd be interested to know if people have criticisms.

Dan


> this is solved by having a second InputDevice with device="/dev/null"
> and using xsetpointer.
> 
> yours sincerely
> 
> Eric Böse-Wolf
> -- 
> If you think technology can solve your problems you don't understand
> technology and you don't understand your problems.  (Bruce Schneier)

Reply via email to