touchpad on HP G32

Sometimes, my touchpad just gets in the way, specially when I'm merrily bashing away on my keyboard on some script. I was happy, then the mouse goes out of focus on my gnome terminal. The result, 7 keystrokes lost and a few sighs.

Unfortulately, synaptics tap-on-the-on/off-sensor that should toggle the touchpad on and off doesn't work.

So I threw this at my ~/bin/ directory:

[bomb@G32 bin]$ cat `which mouseoff`
#!/bin/bash
if [ "`basename $0`" == "mouseoff" ]; then
synclient TouchpadOff=1
else
synclient TouchpadOff=0
fi

[bomb@G32 bin]$ ll ~/bin/mouse*
-rwxrwxr-x. 1 bomb bomb 114 Aug 3 21:28 /home/bomb/bin/mouseoff
lrwxrwxrwx. 1 bomb bomb 8 Aug 3 21:28 /home/bomb/bin/mouseon -> mouseoff


perfect!

1 comment: