SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

ev_bell, starts programs upon sound events from /dev/input/event0.

Autor: Christian Reitwiessner <christian@reitwiessner.de>

Usage: ev_bell <device> <program to execute>

Listens on <device> (usually /dev/input/event0) for sound events and executes the specified program, passing all remaining parameters. If present, a "%1" is substituted by the timestamp of the event, two long integers in decimal representation separated by a ".", the first representing the tv_sec and the second the tv_usec field of a struct timeval (seconds and microseconds since the unix epoch). "%2" is substituted by the event code or sound types (defined in linux/input.h, currently only SND_CLICK (0) and SND_BEEP (1) are specified). "%3" is substituted by the event value.

Example
ev_bell /dev/input/event0 esdplay beep.wav

How to build:

Modify INSTALL_DIR in the Makefile, if you want the binary to be put somewhere else than /usr/local/bin.

Run "make"

Run "make install" (as root)


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.