ev_bell

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

ev_bell Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Christian Reitwiener
  • Publisher web site:
  • http://www.reitwiessner.de

ev_bell Tags


ev_bell Description

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 andexecutes the specified program, passing all remaining parameters. Ifpresent, a "%1" is substituted by the timestamp of the event, two longintegers in decimal representation separated by a ".", the firstrepresenting the tv_sec and the second the tv_usec field of a structtimeval (seconds and microseconds since the unix epoch)."%2" is substituted by the event code or sound types (defined inlinux/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.wavHow to build:Modify INSTALL_DIR in the Makefile, if you want the binary to be put somewhereelse than /usr/local/bin.Run "make"Run "make install" (as root)


ev_bell Related Software