XMMS notifications


A comment in an Article on Debian Administration on desktop notifications mentioned a useful command for the "song change" plugin in xmms:

kdialog --title "Playing on xmms" --passivepopup 
"` xmms-shell -e status |grep Playing |cut -d":" -f2`" 5

As kdialog is quite slow (takes 400 ms for connecting to dcop, etc.) and displays a very ugly balloon popup (like in MS Windows) I prefer

notify-send -u low --icon=/usr/share/icons/crystalsvg/32x32/apps/xmms.png 
 "Playing on xmms" "`xmms-shell -e status | grep Playing | cut -d':' -f2`" 

Very slick, indeed:

notify-send is in the libnotify-bin package in Debian.

Next Post
Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: