summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2009-04-13 14:25:15 +0200
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2009-04-13 14:25:15 +0200
commit51437f299b9c310969284c16507c028b5aa0941c (patch)
tree5af1720045be12f779916e90f681fc25132e7502 /contrib
parent998cd10ac2a0148052e03471d019aafdd2e14f8c (diff)
downloadpianobar-windows-51437f299b9c310969284c16507c028b5aa0941c.tar.gz
pianobar-windows-51437f299b9c310969284c16507c028b5aa0941c.tar.bz2
pianobar-windows-51437f299b9c310969284c16507c028b5aa0941c.zip
More events added
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/eventcmd.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/eventcmd.sh b/contrib/eventcmd.sh
index c414282..a857afd 100755
--- a/contrib/eventcmd.sh
+++ b/contrib/eventcmd.sh
@@ -5,7 +5,7 @@ while read L; do
k="`echo "$L" | cut -d '=' -f 1`"
v="`echo "$L" | cut -d '=' -f 2`"
export "$k=$v"
-done < <(grep -e '^\(title\|artist\)=' /dev/stdin) # don't overwrite $1...
+done < <(grep -e '^\(title\|artist\|album\|stationName\|pRet\|pRetStr\)=' /dev/stdin) # don't overwrite $1...
case "$1" in
songstart)
@@ -13,5 +13,10 @@ case "$1" in
#echo "$title -- $artist" > $HOME/.config/pianobar/nowplaying
# or whatever you like...
;;
+ *)
+ if [ $pRet -ne 0 ]; then
+ echo "naughty.notify({title = \"pianobar\", text = \"$1 failed: $pRetStr\"})" | awesome-client -
+ fi
+ ;;
esac