11 lines
295 B
Plaintext
11 lines
295 B
Plaintext
|
#!/bin/sh
|
||
|
if [ $( mpc status | grep '\[paused\]' | wc -l ) -eq 1 ]; then
|
||
|
echo ""
|
||
|
exit
|
||
|
fi
|
||
|
|
||
|
if [ $( mpc status | grep '\[playing\]' | wc -l ) -eq 1 ]; then
|
||
|
echo $(mpc status | sed "/^volume:/d" | tac | sed -e "s/\\[paused\\].*//g;s/\\[playing\\].*//g" | tr -d '\n' | sed -e "s/$/ /g")
|
||
|
exit
|
||
|
fi
|