annotate audtool/examples/infoline.sh @ 2170:d0312301163f trunk

[svn] fixed bug #699 about playlist->queue with patch provided by bug reporter
author giacomo
date Mon, 18 Dec 2006 14:47:48 -0800
parents 6af3f8fb2ed0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1200
6af3f8fb2ed0 [svn] - prepare to ship audtool with audacious SVN
nenolod
parents:
diff changeset
1 #!/bin/sh
6af3f8fb2ed0 [svn] - prepare to ship audtool with audacious SVN
nenolod
parents:
diff changeset
2 UNUSED=0
6af3f8fb2ed0 [svn] - prepare to ship audtool with audacious SVN
nenolod
parents:
diff changeset
3 while [ $UNUSED -lt 1 ]; do
6af3f8fb2ed0 [svn] - prepare to ship audtool with audacious SVN
nenolod
parents:
diff changeset
4 PLAYTIME=$(audtool current-song-output-length)
6af3f8fb2ed0 [svn] - prepare to ship audtool with audacious SVN
nenolod
parents:
diff changeset
5 SONGTITLE=$(audtool current-song)
6af3f8fb2ed0 [svn] - prepare to ship audtool with audacious SVN
nenolod
parents:
diff changeset
6 SONGLEN=$(audtool current-song-length)
6af3f8fb2ed0 [svn] - prepare to ship audtool with audacious SVN
nenolod
parents:
diff changeset
7 echo -n "[>] $PLAYTIME $SONGTITLE ($SONGLEN) "
6af3f8fb2ed0 [svn] - prepare to ship audtool with audacious SVN
nenolod
parents:
diff changeset
8 sleep 1
6af3f8fb2ed0 [svn] - prepare to ship audtool with audacious SVN
nenolod
parents:
diff changeset
9 printf "\r"
6af3f8fb2ed0 [svn] - prepare to ship audtool with audacious SVN
nenolod
parents:
diff changeset
10 done