view src/audtool/examples/np-colourful.sh @ 4611:895297e46ee3

Cure some 'repetitive code syndromes' from audtool.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 05 Jun 2008 01:25:22 +0300
parents 3149d4b1a9a9
children
line wrap: on
line source

#!/bin/sh
SONGTITLE=$(audtool current-song | sed 's: - : 09-12 :g')
SONGELAPSED=$(audtool current-song-output-length)
SONGLEN=$(audtool current-song-length)
SONGPOS=$(audtool playlist-position)
PLAYLEN=$(audtool playlist-length)

printf "\00303-=[\003 \00312$SONGPOS\00309/\00312$PLAYLEN\00309:\00312 $SONGTITLE \00309(\00312$SONGELAPSED\00309/\00312$SONGLEN\00309)\00303 ]=-\003\n"