PDA

View Full Version : [SOLVED] Add mpc to unity panel



chris137
July 8th, 2015, 10:39 PM
Hey,
I am controlling a remote MPD-server with mpc on my ubuntu-machine.
I'd like to add that info as indicator to my unity panel.
Is there a way to do this?
Simple commands like volume and next track would be alright.
Ideally it would be inside the existing sound indicator.
I couldn't find where the config is stored for that.

Thanks

mc4man
July 9th, 2015, 03:52 PM
The existing sound indicator would require mpris2 support, can you make use of mpdris2

chris137
July 9th, 2015, 06:00 PM
That looks like it's supposed to do exactly what I want!
Sadly I could not test it yet because I can't install it. Issue has been opened at github.
Maybe you want to take a look: https://github.com/eonpatapon/mpDris2/issues/67

If that gets resolved I guess I'll be happy.

mc4man
July 10th, 2015, 01:44 AM
As it happens I had a new 14.04.3 install in place with absolutely no build packages installed. So installed these & ran the autogen.sh from the downloaded master (zip), went fine
So run this single command, see if anything gets installed -

sudo apt-get install autoconf automake autopoint autotools-dev build-essential \
dpkg-dev g++ g++-4.8 intltool libstdc++-4.8-dev libtool

Or alternately run sudo apt-get build-dep mpdris2
(- though that will also install some packaging packages..

chris137
July 10th, 2015, 10:32 AM
Thanks, that did work!
After I also had to install python-mpd to run it I am now 100% happy.
Well.. Make it 98. Sound-control and covers from spotify would be nice too, but I'll look into that another time.
For now this is solved, thanks again.