view audtool/examples/np.sh @ 2042:0985452d1962 trunk

[svn] - clean up some internal audacious controlsocket functions - document the controlsocket API
author nenolod
date Mon, 04 Dec 2006 01:23:15 -0800
parents 641ee4092aea
children
line wrap: on
line source

#!/bin/sh
SONGTITLE=$(audtool current-song)
SONGELAPSED=$(audtool current-song-output-length)
SONGLEN=$(audtool current-song-length)
MIME=$(file -ib "`audtool current-song-filename`")

echo "np: $SONGTITLE [$MIME] ($SONGELAPSED/$SONGLEN)"