Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[OT] XMMS (mit) root-tail
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
Louisdor
Veteran
Veteran


Joined: 14 Dec 2003
Posts: 1231
Location: im Brandenburgischen

PostPosted: Tue Jul 20, 2004 11:39 pm    Post subject: [OT] XMMS (mit) root-tail Reply with quote

Hi !

Ich bin am Überlegen, wie ich das hinbekommen kann, dass ich die Titelzeile, die bei einer "mp3" Datei oder einem Stream durch den xmms läuft, auf dem Desktop als durchlaufende Zeile angezeigt bekomme. So in der Art, wie z.B. root-tail mir die Logfiles anzeigt.

Gibt es da evtl. ein Tool oder irgendeine Möglichkeit dafür die Infos laufend bei xmms abzufragen und auf dem Desktop in einer geometrisch festgelegten Zeile darzustellen?
Also, nicht wie bei root-tail untereinander auflaufend.
_________________
"Ich bin ich."
Back to top
View user's profile Send private message
apache
n00b
n00b


Joined: 20 Jul 2004
Posts: 60
Location: Austria

PostPosted: Tue Jul 20, 2004 11:52 pm    Post subject: Reply with quote

Also eine Möglichkeit wäre mittels xmmsctrl die Infos abzufragen und diese z.B. über Karamba darzustellen.

xmmsctrl ist ein kleines Shell Programm, mit dem XMMS gesteuert bzw. Infos abgefragt werden können. Den Title würdest du z.B. über
Code:
xmmsctrl title
erhalten.
Back to top
View user's profile Send private message
apache
n00b
n00b


Joined: 20 Jul 2004
Posts: 60
Location: Austria

PostPosted: Wed Jul 21, 2004 12:04 am    Post subject: Reply with quote

Nachtrag: Hab gerade festgestellt, dass es ein xmms theme für Karamba gibt, das kannst du ja ganz einfach mit einem Editor kürzen, sodass es nur mehr den aktuellen Titel anzeigt. xmmsctrl ist hierfür gar nicht nötig.
Back to top
View user's profile Send private message
equinox0r
l33t
l33t


Joined: 18 Feb 2004
Posts: 614

PostPosted: Wed Jul 21, 2004 5:26 am    Post subject: Reply with quote

oder probiers mal damit ..
nicht getestet, sollte aber tun ;)

file: xmms-tail
Code:
#!/bin/bash
timeout=3 #seconds
logfile=$HOME/.xmms-tail.log
xmmsctrl_bin=`which xmmsctrl`
lockfile=$HOME/.xmms-tail.lock

#root-tail $logfile &
if test -f $xmmsctrl_bin; then
        new_title=`xmmsctrl_bin title`
        old_title=`cat $lockfile`
        if ! test $old_title = $new_title; then
                echo $new_title >> $logfile
                echo $new_title > $lockfile
                echo "logfile updated ($new_title)"
        fi

        while :; do
                for i in `seq 1 10`; do
                        echo -n "."
                        sleep $timeout;
                done
                xmms-tail
        done
fi


das ganze kannst du immernoch mit root-tail verwenden da kannst du ja angeben wo sich das frame befinden und wie gross es sein soll ... *imho*

have phun ;)
Back to top
View user's profile Send private message
Louisdor
Veteran
Veteran


Joined: 14 Dec 2003
Posts: 1231
Location: im Brandenburgischen

PostPosted: Wed Jul 21, 2004 3:45 pm    Post subject: Reply with quote

Hi!

Vielen Dank für die Antworten.

@equinox0r:
Dein Script probiere ich grad noch aus, irgendwas will da noch nicht so ganz.
Leider hab ich grad nicht so die Zeit das ausführlich zu testen.
Ich melde mich wieder wenn ich am WE Zeit habe.
_________________
"Ich bin ich."
Back to top
View user's profile Send private message
equinox0r
l33t
l33t


Joined: 18 Feb 2004
Posts: 614

PostPosted: Wed Jul 21, 2004 4:49 pm    Post subject: Reply with quote

kann sein, habs net getestet ;)
vielleicht mach ich das morgen früh wenn ich nach hause komm *g*
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum