Welcome Guest, [ Log in, Register ]

Python

kamathln's picture

Python script to recognize two finger gestures from your synaptic touchpad.

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

hardik's picture

For Python, ASCII, Console lovers...

#!/bin/usr/python

class community

while community:
 try:
    if
     you are python, ASCII, Console lover:
     you believe in sweet, simple and straight forward presentation:
     If you don't want to load  OO Presentation:
    then
     Check the console-presenter [1].
     Working in Jaunty (9.04,  Intrepid (8.10) and Hardy (8.04 U2).
     [1] https://launchpad.net/~hardik-dalwadi/+archive/ppa
else:
  Your Choice  :)