changed location of the notifications to be less intrusive
[mpdcron.git] / scripts / mpdoutput
blob09ef0cadedc1717017d528a0195c3a03f5ab69ae
1 #!/bin/sh
3 ##needs mpc and dzen2##
4 if [ -f /tmp/mpc_out1 ]
5 then
6 killall dzen2; mpc outputs > /tmp/mpc_out2; diff /tmp/mpc_out1 /tmp/mpc_out2 | grep ">" | dzen2 -p 3; cp -f /tmp/mpc_out2 /tmp/mpc_out1
7 else
8 killall dzen2; mpc outputs > /tmp/mpc_out1; cat ">" /tmp/mpc_out1 | dzen2 -p 3
9 fi