This is a simple driver to allow you to process the output from Pierre's linux cuecat driver. It's basically a regexp matching job; that's why it's written in perl.

The script and a sample config file can be found here. The config file contains the matching algorithms as well as the approriate actions to take, and it's where the heavy lifting occurs. Watch the permissions on it, it is really just a perl fragment sourced by the main program.

To make it work, probably you want to run it in your .xinitrc file. Try adding this line (modified for your paths) to the beginning of your .xinitrc file:
/path/to/cueact.pl -r /path/to/config -v 2 &
This should run the script when you start up X. Note that the script assumes your device is in /dev/cuecat; if not, change the definition on line 5.

For contributions, legal threats, praise, money, or mailbombs, you can contact me by e-mail at vectro@pipeline.com.