Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh -
- format="NP: %artist% - %track%:%title% - %album%"
- mpcStLine=$(mpc --format "$format" | head -1)
- mpcTiLine=$(mpc --format "$format" | tail -2 | head -1)
- mpcTime=$(echo $mpcTiLine | grep -o "[0-9]*:[0-9]*" | head -1)
- mpcTot=$(echo $mpcTiLine | grep -o "[0-9]*:[0-9]*" | head -2 | tail -1)
- mpcStatus="$mpcStLine [$mpcTime/$mpcTot]"
- echo $mpcStatus
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement