~ubuntu-branches/ubuntu/saucy/cairo-dock-plug-ins/saucy

« back to all changes in this revision

Viewing changes to xmms/data/infoaudacious.sh

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2009-08-26 21:07:39 UTC
  • Revision ID: james.westby@ubuntu.com-20090826210739-gyjuuqezrzuluao4
Tags: upstream-2.0.8.1
Import upstream version 2.0.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
# Audacious Emulated pipe
 
3
# Pipe created by ChAnGFu
 
4
 
 
5
STATUS=$(audtool playback-status)
 
6
TITLE=$(audtool current-song)
 
7
 
 
8
if [  "$STATUS" = "audtool: audacious server is not running!" ]; then
 
9
  exit
 
10
fi
 
11
if [  "$TITLE" = "No song playing." ]; then
 
12
  exit
 
13
fi
 
14
 
 
15
#Status du player
 
16
echo "status: $STATUS"
 
17
#Position du morceaux
 
18
echo "trackInPlaylist: $(audtool playlist-position)"
 
19
#Position actuelle en secondes
 
20
echo "uSecPosition: $(audtool current-song-output-length-frames)"
 
21
#Temps écoulé
 
22
#echo "timeElapsed $(audtool current-song-output-length)"
 
23
echo ""
 
24
#Temps total en secondes
 
25
echo "totalTimeInSec $(audtool current-song-length-frames)"
 
26
#Temps total du son
 
27
#echo "totalTime: $(audtool current-song-length)"
 
28
echo ""
 
29
#Titre du son
 
30
echo "nowTitle: $TITLE"