view src/audtool/examples/infoline.sh @ 2880:ccf27c9176b0 trunk

Backed out changeset 77895ec242f7394b1c5c0833790a35d9e55d3db2
author William Pitcock <nenolod@atheme.org>
date Sun, 24 Jun 2007 05:31:17 -0500
parents 3149d4b1a9a9
children
line wrap: on
line source

#!/bin/sh
UNUSED=0
while [  $UNUSED -lt 1 ]; do
	PLAYTIME=$(audtool current-song-output-length)
	SONGTITLE=$(audtool current-song)
	SONGLEN=$(audtool current-song-length)
	echo -n "[>] $PLAYTIME $SONGTITLE ($SONGLEN)                     "
	sleep 1
	printf "\r"
done