diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-04-13 14:25:15 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-04-13 14:25:15 +0200 |
commit | 51437f299b9c310969284c16507c028b5aa0941c (patch) | |
tree | 5af1720045be12f779916e90f681fc25132e7502 /contrib | |
parent | 998cd10ac2a0148052e03471d019aafdd2e14f8c (diff) | |
download | pianobar-51437f299b9c310969284c16507c028b5aa0941c.tar.gz pianobar-51437f299b9c310969284c16507c028b5aa0941c.tar.bz2 pianobar-51437f299b9c310969284c16507c028b5aa0941c.zip |
More events added
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/eventcmd.sh | 7 |
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 |