Page 1 of 1

radiotray in conky

Posted: Sat Sep 15, 2012 2:45 pm
by homerscousin
I have radiotray and conky running fairly well. I want to have the radiotray info for station and track displayed in conky. I have the titles entered but not the actual info. I assume I could grep the info if I knew where to look. That's the problem. I can't find the info in Dolphin. Does anyone know where to find current station and track info and load it into Conky? Mint 13 KDE?

Re: radiotray in conky

Posted: Sat Sep 15, 2012 5:11 pm
by jazz.h
Wow, excellent idea. Radiotray and conky are my favorites. That would be awesome.
I know that a list of radio stations I have bookmarked are in /home/dk/.local/share/radiotray/bookmarks.xml
Perhaps this folder or /usr/share/radiotray/plugins/ ?

Re: radiotray in conky

Posted: Sun Sep 16, 2012 5:58 am
by jazz.h
I found this http://crunchbanglinux.org/forums/topic ... d/page/39/

This works for me:

Code: Select all

${execi 15 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio}
${color #7D8C93}Artist & Song 
${execi 15 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray getCurrentMetaData| fold -s -w35}
:D

Re: radiotray in conky

Posted: Mon Sep 17, 2012 12:27 pm
by homerscousin
Thanks. I read that same crunchbang page. It was the only one I found that was close. I figured just copying and pasting that code would not work, at least not without some tweaking, so I did not try it. Did you try that exact code or is that "This works for me" from that page? I really don't have my head wrapped around how to find info like this in Linux. I just did a quick search for my radiotray bookmarks in /home and found nothing. Can I use qdbus from terminal? Haven't tried that either.

Re: radiotray in conky

Posted: Mon Sep 17, 2012 12:40 pm
by jazz.h
Yes, I tried the exact code and it works out of the box, Mint 13 KDE 64bit.

Re: radiotray in conky

Posted: Mon Sep 17, 2012 4:14 pm
by homerscousin
Hey, thanks. I'll try it. If it does, then I'll have to conquer why the heck did it work.

Re: radiotray in conky

Posted: Tue Sep 18, 2012 10:54 am
by homerscousin
Yes, it does work! I had to do a little formatting to get things lined up in my conky and I changed | fold -s -w35} to | fold -s -w45} that added 10 more character spaces to the song title and should be enough to keep it all on one line. I also start the whole radiotray section with ${if_running radiotray} and end it with ${endif}. My radiotray display only appears in conky when the program is running.