If you are using a touchscreen with your Raspberry Pi, then this guide is for you.
Xstroke (Gesture recognition) is the perfect tool to help you get more out of your touhscreen. I am using a PiScreen
Gesture recognition allows you to draw "strokes" on your touchscreen, which get interpreted as commands or text. Xstroke allows these to be entered anywhere on the screen. In some cases, Xstroke can be used instead of a keyboard.
Installing xstroke is very easy, just need to install some prerequisites, download xstroke and compile
pi@raspberrypi ~ $ wget http://mirror.egtvedt.no/avr32linux.org/twiki/pub/Main/XStroke/xstroke-0.6.tar.gz
pi@raspberrypi ~ $ tar xfv xstroke-0.6.tar.gz
pi@raspberrypi ~ $ cd xstroke-0.6/
pi@raspberrypi ~ $ ./configure
We need to make a small edit to the Makefile, otherwise make will fail;
pi@raspberrypi ~ $ make
pi@raspberrypi ~ $ sudo make install
We will install some menu items so we can start and stop xtroke within X.
Download the menu items from ozzmaker.com;
pi@raspberrypi ~ $ wget http://www.ozzmaker.com/piscreen/xstroke.desktop
Then copy them to the appropriate location;
Below you can see the location of the two scripts.
One to start xstroke and the other to kill the xstroke process
After starting xstroke, an icon will appear on the task bar to the right. You will need to click on this icon to enable gesture recognition.
The image below shows the icon when gesture recognition is enabled.
Default Gesture Set