blob: a102ba098ebc73e89644c5ddc3e761b85299dcc4 (
plain)
1
2
3
4
5
6
7
|
#!/bin/sh
if mpc > /dev/null 2>&1
then
if [ "$(mpc status "%totaltime%")" != "0:00" ]; then
printf '%s %s' "$(mpc status "%currenttime%/%totaltime%")" "$(mpc -f "[[%title%]|%file%]" | head -n -2)"
fi
fi
|