PromyLOPh / pianobar

Console-based pandora.com player
http://6xq.net/pianobar/
Other
1.74k stars 321 forks source link

Question: Multiple event_cmd scripts #648

Closed USAFPride closed 6 years ago

USAFPride commented 6 years ago

Is it possible to have multiple event_cmd scripts?

PromyLOPh commented 6 years ago

Yes, see contrib/eventcmd-examples/multi.sh

USAFPride commented 6 years ago

Just to clarify:

I would add:

event_command = /home/pi/Patiobar/eventcmd1.sh
event_command = /home/pi/Patiobar/eventcmd2.sh

in a file called eventcmd.d?

PromyLOPh commented 6 years ago

No, the idea is to put all your (executable!) event scripts into the directory ~/.config/pianobar/eventcmd.d/ and add

event_command = /path/to/multi.sh

to your config file. multi.sh basically acts as a “trampoline”, executing all scripts in eventcmd.d.

I probably should add this description to the top of multi.sh, shouldn’t I?

USAFPride commented 6 years ago

Sorry for the late response. A bit of a holiday. I would recommend some specific examples/clarifications to the use. I haven't tried anything as I didn't want to break something right before I left.