[mythtv-users] Nice sounds on clicks, startup, etc.

Dan Ritter dsr-myth at tao.merseine.nu
Tue Aug 21 14:21:11 UTC 2007

On Mon, Aug 20, 2007 at 03:51:03PM -0700, Gabe Rubin wrote:
> On 8/20/07, Phill Edwards <philledwards at gmail.com> wrote:
> > Or is it possible to put something in lircrc for each keypress that
> > would execute a shell script to play a sound? If so I didn't know you
> > could do that.
> You can use lirc to execute scripts or commands (or execute files)
> using irexec.  Just make sure the service is on and you appropriately
> call it from lircrc.  For example, from Jarod's site (I have a few
> irexec commands on my box, but I can't access the file from here):
> # Power Button
> begin
> prog = irexec
> button = OFF
> #button = POWER # (for my RS15-2116 remote)
> repeat = 4
> config = /usr/local/bin/mythpowerbutton.sh
> end
> and you can make a script that basically just plays a sound file or
> perhaps even call aplay.  Just edit the config and button lines to
> what is appropriate.

And in fact, I did that last night. For LEFT, RIGHT, UP, DOWN,
EXIT, RETURN, GUIDE; each has a new stanza:

    prog = irexec
    button = UP
    config = aplay /home/mythtv/sounds/up.wav

Works very well.

Every time you give up a right, the terrorists win.

http://tao.merseine.nu/~dsr/eula.html is hereby incorporated by reference.

More information about the mythtv-users mailing list