Hello, right now, I will give you some tutorial and code that probably will be really usable for you. I will give you the complete Desktop Environment installation set for ubuntu. Well, my first desktop enviroment lists are:
gestikk provides mouse gestures for you, supporting many linux window managers. With gestikk, you can easily control your PC by drawing gestures with the mouse: mouse gestures. Gestikk allows to define an infinite number of gestures, which start applications or simulate key presses. Versions >= 0.5 uses PyGTK for GUI and python-virtkey for keypresses.