ev_bell 0.9

ev_bell is a project which runs external programs when sound events from the Linux kernel occur.
ev_bell is a project which runs external programs when sound events from the Linux kernel occur.

ev_bell can call external programs when the Linux kernel generates a simple sound event like the bell signal from the console. It looks for sound events on /dev/input/event*, parses them, and calls the external program afterwards. The fields of the event packet can be put inside of the argument string of that program.

This file contains the source code and a precompiled version for x86 computers. You can use it, but be warned that I do not take any responsibilities for anything caused by this binary (nor by any binary compiled from the source), it may not even run.

Usage: ev_bell

Listens on (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)

last updated on:
March 13th, 2007, 3:05 GMT
price:
FREE!
developed by:
Christian Reitwie▀ner
homepage:
www.reitwiessner.de
license type:
GPL (GNU General Public License) 
category:
ROOT \ Utilities

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!

Add your review!

SUBMIT