blob: a6eb016ad969b04a6fae5ad9532a098175b2775e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/bash
#
# Executes all scripts located in ~/.config/pianobar/eventcmd.d/ as if they
# were called by pianobar directly
STDIN=`mktemp`
cat >> $STDIN
for F in ~/.config/pianobar/eventcmd.d/*; do
if [ -x "$F" ]; then
"$F" $@ < "$STDIN"
fi
done
rm "$STDIN"
|