diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2011-02-27 16:42:58 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2011-02-27 16:42:58 +0100 |
commit | 7956d1a2f83bcb0d82da6af34a621709a21407cb (patch) | |
tree | c1e76281122d3abc1209dbc9b5a4bf6ea69256e4 /contrib/eventcmd-examples/eventcmd.sh | |
parent | d65f8720c5876d0a21ae69855e74b97389224906 (diff) | |
download | pianobar-7956d1a2f83bcb0d82da6af34a621709a21407cb.tar.gz pianobar-7956d1a2f83bcb0d82da6af34a621709a21407cb.tar.bz2 pianobar-7956d1a2f83bcb0d82da6af34a621709a21407cb.zip |
kdialog example eventcmd
Merged Richard's kde4 example eventcmd into eventcmd.sh
Diffstat (limited to 'contrib/eventcmd-examples/eventcmd.sh')
-rwxr-xr-x | contrib/eventcmd-examples/eventcmd.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/contrib/eventcmd-examples/eventcmd.sh b/contrib/eventcmd-examples/eventcmd.sh index 9298d4f..32ffa00 100755 --- a/contrib/eventcmd-examples/eventcmd.sh +++ b/contrib/eventcmd-examples/eventcmd.sh @@ -10,7 +10,15 @@ done < <(grep -e '^\(title\|artist\|album\|stationName\|songStationName\|pRet\|p case "$1" in # songstart) # echo 'naughty.notify({title = "pianobar", text = "Now playing: ' "$title" ' by ' "$artist" '"})' | awesome-client - + # echo "$title -- $artist" > $HOME/.config/pianobar/nowplaying + +# if [ "$rating" -eq 1 ] +# then +# kdialog --title pianobar --passivepopup "'$title' by '$artist' on '$album' - LOVED" 10 +# else +# kdialog --title pianobar --passivepopup "'$title' by '$artist' on '$album'" 10 +# fi # # or whatever you like... # ;; @@ -27,11 +35,33 @@ case "$1" in # fi # ;; +# songlove) +# kdialog --title pianobar --passivepopup "LOVING '$title' by '$artist' on '$album' on station '$stationName'" 10 +# ;; + +# songshelf) +# kdialog --title pianobar --passivepopup "SHELVING '$title' by '$artist' on '$album' on station '$stationName'" 10 +# ;; + +# songban) +# kdialog --title pianobar --passivepopup "BANNING '$title' by '$artist' on '$album' on station '$stationName'" 10 +# ;; + +# songbookmark) +# kdialog --title pianobar --passivepopup "BOOKMARKING '$title' by '$artist' on '$album'" 10 +# ;; + +# artistbookmark) +# kdialog --title pianobar --passivepopup "BOOKMARKING '$artist'" 10 +# ;; + *) if [ "$pRet" -ne 1 ]; then echo "naughty.notify({title = \"pianobar\", text = \"$1 failed: $pRetStr\"})" | awesome-client - +# kdialog --title pianobar --passivepopup "$1 failed: $pRetStr" elif [ "$wRet" -ne 1 ]; then echo "naughty.notify({title = \"pianobar\", text = \"$1 failed: Network error: $wRetStr\"})" | awesome-client - +# kdialog --title pianobar --passivepopup "$1 failed: Network error: $wRetStr" fi ;; esac |