Page 1 of 1

MPRIS and Natty Launcher

Posted: Tue May 10, 2011 10:21 pm
by mekanix
Hi! I was thinking to try adding commands (such as play/stop, pause, skip, and so on) in the context menu of guayadeque icon in unity launcher.

I found all commands here http://xmms2.org/wiki/MPRIS excepts the Next/Prev Album how can I send these message through MPRIS?

MPRIS and Natty Launcher

Posted: Tue May 10, 2011 11:15 pm
by anonbeat
This will be the same as Next Prev but with shift pressed.

MPRIS and Natty Launcher

Posted: Tue May 10, 2011 11:56 pm
by mekanix
Thanks, but what I was meaning is the org.freedesktop.MediaPlayer.[CommandForNextAlbum?]

MPRIS and Natty Launcher

Posted: Wed May 11, 2011 12:02 am
by anonbeat
As you can see in the specification there is no such thing

Thanks for your help

MPRIS and Natty Launcher

Posted: Wed May 11, 2011 12:50 am
by mekanix
Ouch :)
Ok, thanks anonbeat!

MPRIS and Natty Launcher

Posted: Wed May 11, 2011 4:21 am
by Linye
Let us know how it goes. I'm interested.

MPRIS and Natty Launcher

Posted: Wed May 11, 2011 6:02 am
by mekanix
Ok, I've done something very basic!

guayampris is a simple perl script (I'm completely unable to do even simple things in bash XDD) which determine if guayadeque is in play/pause/stop status. This is important because I've chosen to add a unic Play/Pause item in the icon in unity-launcher, and the mpris signal to send depends on the status.
unzip guayampris in /usr/bin/ folder

Unzip guayadeque.desktop. If it doesn't have the guayadeque icon, probably because this launcher is not trusted, double click on it and when asked, tell that this launcher is trusted, then drag it in unity-launcher to add it. Try with the mouse right-button, it should display the three commands I've added, Click on "keep in launcher" to add this icon to unity launcher.

MPRIS and Natty Launcher

Posted: Wed May 11, 2011 6:03 am
by mekanix

MPRIS and Natty Launcher

Posted: Thu May 12, 2011 11:09 am
by Linye
Nicely done sir. Even more awesome than others with the next/previous album.

Thanks.

MPRIS and Natty Launcher

Posted: Thu May 12, 2011 9:42 pm
by mekanix
you're welcome! :)