summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2018-01-22 20:02:52 +0100
committerLars-Dominik Braun <lars@6xq.net>2018-01-22 20:02:52 +0100
commit3c273f3ec3c999321f31ac06fd27c6930afb2344 (patch)
tree50a2800492ce6f5608b7302100b8d5aaada47788
parent1a1465ced2bded1b8df881a8fc2e1f37f8cae17c (diff)
downloadpianobar-3c273f3ec3c999321f31ac06fd27c6930afb2344.tar.gz
pianobar-3c273f3ec3c999321f31ac06fd27c6930afb2344.tar.bz2
pianobar-3c273f3ec3c999321f31ac06fd27c6930afb2344.zip
contrib: Add usage to multi.sh
Closes #648
-rwxr-xr-xcontrib/eventcmd-examples/multi.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/contrib/eventcmd-examples/multi.sh b/contrib/eventcmd-examples/multi.sh
index 4aa66a8..32d62b8 100755
--- a/contrib/eventcmd-examples/multi.sh
+++ b/contrib/eventcmd-examples/multi.sh
@@ -1,7 +1,17 @@
#!/bin/bash
#
-# Executes all scripts located in ~/.config/pianobar/eventcmd.d/ as if they
-# were called by pianobar directly
+# Usage
+# =====
+#
+# Set
+#
+# event_command = /path/to/multi.sh
+#
+# in pianobar’s config file. Then create the directory
+# ~/.config/pianobar/eventcmd.d/, move your eventcmd scripts there and make
+# them executable (chmod +x). They will be run in an unspecified order the same
+# way the would have been run if pianobar called them directly (i.e. using
+# event_command).
STDIN=`mktemp ${TMPDIR:-/tmp}/pianobar.XXXXXX`
cat >> $STDIN