Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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 (Either directly or as reference)

share|improve this answer

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.

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

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

share|improve this answer

Both xmms2tray and esperanza provide popup notifications, although each requires running a client program. There is currently no plugin providing libnotify integration for xmms2, which would be one of the better ways to get such notifications.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .