This little python script monitors for two finger guestures from your synaptic touchpad. The guestures are limited to simple up, down, left, right, and (it will work if both your kernel as well as xorg is configured for it. You can check it by using synclient command line tool.).
The script expects the output of "synclient -m N" on its standard input , where N is your choice of refresh milliseconds, 10,20 works great, 100 if ur machine is slow. What I mean is this :
user@host$ synclient -m 20 | python syn_guesture_compiz.py
The script syn_guesture_compiz.py is currently hotwired to turn the compiz cube for left , right swipes. Swiping up switches off the display using xset , downward swipe toggle widget layer. (compiz must have dbus and widget plugins enabled) . It also disables the driver from moving the cursor when two finger swipes are happening. Check for lines starting with "compiz", "os.system" and around for configurables. Better yet, take a diff between syn_guesture.py and syn_guesture_compiz.py
There is a bug that makes the cursor jump randomly at the next normal use of touchpad. Help would be appreciated.