From 51437f299b9c310969284c16507c028b5aa0941c Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 13 Apr 2009 14:25:15 +0200 Subject: More events added --- contrib/eventcmd.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'contrib') 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 -- cgit v1.2.3