summaryrefslogtreecommitdiffstats
path: root/mpdStats
blob: 7e3bec97d7c376b17614ff159f75373b5adc26c6 (plain)
1
2
3
4
#!/bin/zsh
#mpc status | tr '\n' '@' | perl -lne 'print substr($1,0,45).qq/ $2/  if m{^(.+)@\Q[\E.+(\d+:\d+/\d+:\d+)}'

mpc status | tr '\n' '@' | perl -ne 'print "♬ ".substr($1,0,55).qq/ $2/." ♬"  if m{^(.+)@\Q[\E.+(\d+:\d+/\d+:\d+)}'