2020-07-04 14:23:27 +02:00
|
|
|
#!/bin/sh
|
|
|
|
if [ $( mpc status | grep '\[paused\]' | wc -l ) -eq 1 ]; then
|
2020-08-29 16:54:11 +02:00
|
|
|
printf '\n'
|
2020-07-04 14:23:27 +02:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $( mpc status | grep '\[playing\]' | wc -l ) -eq 1 ]; then
|
2020-07-17 15:05:59 +02:00
|
|
|
echo $(mpc status | sed "/^volume:/d" | tac | sed -e "s/\\[paused\\].*//g;s/\\[playing\\].*//g" | tr -d '\n' | sed -e "s/$/ /g")
|
2020-07-04 14:23:27 +02:00
|
|
|
exit
|
|
|
|
fi
|