From 859d2c1cb12f8752fb416eb275ef8282cff10ea4 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 1 Mar 2010 12:07:57 +0100 Subject: manpage: Add section eventcmd --- src/pianobar.1 | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/pianobar.1 b/src/pianobar.1 index 6112bce..ffd6d1c 100644 --- a/src/pianobar.1 +++ b/src/pianobar.1 @@ -137,8 +137,8 @@ will use this proxy. The music is streamed directly. .TP .B event_command = path -File that is executed when event occurs. The file is called with the event type -as it's first argument. More information is supplied through stdin. +File that is executed when event occurs. See section +.B EVENTCMD .TP .B history = 5 @@ -191,5 +191,23 @@ Another example: echo -ne 'n\\x1a' | nc -q 0 127.0.0.1 12345 +.SH EVENTCMD + +.B pianobar +can report certain "events" to an external application (see +.B CONFIGURATION +). This application is started with the event name as it's first argument. More +information (artist, title, album, stationName, error code, error description) +is supplied through stdin. + +Currently supported events are: artistbookmark, songban, songbookmark, +songexplain, songlove, songmove, songshelf, songstart, stationaddmusic, +stationaddshared, stationcreate, stationdelete, stationfetchplaylist, +stationquickmixtoggle, stationrename + +An example script can be found in the contrib/ directory of +.B pianobar's +source distribution. + .SH AUTHOR Lars-Dominik Braun -- cgit v1.2.3