Is there a way to get XMMS2 to call an outside script when it advances in a playlist - either automatically or via manual intervention (e.g. xmms2 next)?

The goal is to have balloons pop up on my desktop to tell me what new song has started playing, and I really, really don't want to write a background daemon that polls 'xmms2 info' or 'xmms2 current' if there's a way to get it to issue the callback.

link|improve this question
feedback

3 Answers

XMMS2 only calls scripts or programs on startup and shutdown. There is no function built in that calls programs when it advances in the playlist.

But you could write a small client program in python, perl or ruby that connects to XMMS2 and uses broadcast_current_id to get notified when the current song changes.

For displaying that information you can then use libnotify, like someone already told in an answer to another question.

Or you can use an existing notification client, like http://code.google.com/p/xmms2-notify/ (Either directly or as reference)

link|improve this answer
feedback

Right mouse click -> Popup menu -> Preferences -> General plugins -> Song change plugin

enable this and configure the command to be launched when a new song starts.

link|improve this answer
That answer might work for XMMS, but the question was about XMMS2 – Caotic Sep 26 '09 at 15:22
feedback

esperanza, a xmms2 client has the notification feature you want.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.