#!/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