summaryrefslogtreecommitdiffstats
path: root/mpdStats
blob: 3e3d063197d3cf0ad1ac9c9ddc8c39c39a599983 (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,45).qq/ $2/." ♬"  if m{^(.+)@\Q[\E.+(\d+:\d+/\d+:\d+)}'