Like many others here, i wrote a little control for the musicplayerdaemon mpd.
What i was annoyed of was, that i couldn’t get the title of the song into it, so i wrote a small FvwmScript-Applet based on FvwmApplet-DigitalClock to do this: ClickMe
This is my first FvwmScript, so I request for comments (e.g. how to disable the flickering when using transparent colorsets).
Well, I think the easiest way by far to reduce the flickering is to only update the title when your songtitle changes, so you’d need to compare the current title with the new and call the ChangeTitle command based on that.
Well thanks for figuring this out for me, it was on my todo list for after the exams
[Offtopic]By the way: great music and nicely done theme[/Offtopic]
[EDIT]I didn’t feel like studying so this is what I came up with:
[code]WindowTitle {FvwmApplet-DigitalClock}
WindowSize 350 50 # Taille
Font xft:Snap:Size=8
Init
Begin
Set $MainColorset=(GetScriptArgument 1)
If $MainColorset <> {} Then
Begin
ChangeColorset 0 $MainColorset
ChangeColorset 1 $MainColorset
End
Set $tmp = (GetOutput {exec mpc} 1 -1)
ChangeTitle 1 $tmp
End
PeriodicTasks
Begin
If (RemainderOfDiv (GetTime) 3)==0 Then
Begin
Set $old = $tmp
Set $tmp = (GetOutput {exec mpc} 1 -1)
If $tmp==$old Then
Do Nop
Else
Begin
ChangeTitle 1 $tmp
End
End
End
Widget 1
Property
Position 0 0
Size 350 50
Type ItemDraw
Flags NoReliefString
Title {}
[/code]
The link still works for me, if you keep on having problems I’ll mirror them
[EDIT]Doh, of course they now work for me, Hun linked to my home box, which goes offline (nearly) each night, I’ll upload them on my hosting site later.
[EDIT2]If the above link doesn’t work you can get the icons here.