radiotray in conky

Forum rules
Before you post please read this

radiotray in conky

Postby homerscousin on Sat Sep 15, 2012 2:45 pm

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?
i5 3570k, ASRock z77 Extreme 4, 8 Gb Ripjaws 1600, Antec 430w psu, HVR 1600 tv tuner, custom case- marble top, oak face. Carver & DCM Time Window sound system. Mint 14 KDE.
homerscousin
Level 5
Level 5
 
Posts: 541
Joined: Fri May 25, 2012 2:43 pm
Location: Somewhere on planet Earth (mostly)

Linux Mint is funded by ads and donations.
 

Re: radiotray in conky

Postby jazz.h on Sat Sep 15, 2012 5:11 pm

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/ ?
jazz.h
Level 4
Level 4
 
Posts: 235
Joined: Sat Jun 18, 2011 7:13 am

Re: radiotray in conky

Postby jazz.h on Sun Sep 16, 2012 5:58 am

I found this http://crunchbanglinux.org/forums/topic/16909/the-new-monster-conky-thread/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
jazz.h
Level 4
Level 4
 
Posts: 235
Joined: Sat Jun 18, 2011 7:13 am

Re: radiotray in conky

Postby homerscousin on Mon Sep 17, 2012 12:27 pm

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.
i5 3570k, ASRock z77 Extreme 4, 8 Gb Ripjaws 1600, Antec 430w psu, HVR 1600 tv tuner, custom case- marble top, oak face. Carver & DCM Time Window sound system. Mint 14 KDE.
homerscousin
Level 5
Level 5
 
Posts: 541
Joined: Fri May 25, 2012 2:43 pm
Location: Somewhere on planet Earth (mostly)

Re: radiotray in conky

Postby jazz.h on Mon Sep 17, 2012 12:40 pm

Yes, I tried the exact code and it works out of the box, Mint 13 KDE 64bit.
jazz.h
Level 4
Level 4
 
Posts: 235
Joined: Sat Jun 18, 2011 7:13 am

Re: radiotray in conky

Postby homerscousin on Mon Sep 17, 2012 4:14 pm

Hey, thanks. I'll try it. If it does, then I'll have to conquer why the heck did it work.
i5 3570k, ASRock z77 Extreme 4, 8 Gb Ripjaws 1600, Antec 430w psu, HVR 1600 tv tuner, custom case- marble top, oak face. Carver & DCM Time Window sound system. Mint 14 KDE.
homerscousin
Level 5
Level 5
 
Posts: 541
Joined: Fri May 25, 2012 2:43 pm
Location: Somewhere on planet Earth (mostly)

Re: radiotray in conky

Postby homerscousin on Tue Sep 18, 2012 10:54 am

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.
i5 3570k, ASRock z77 Extreme 4, 8 Gb Ripjaws 1600, Antec 430w psu, HVR 1600 tv tuner, custom case- marble top, oak face. Carver & DCM Time Window sound system. Mint 14 KDE.
homerscousin
Level 5
Level 5
 
Posts: 541
Joined: Fri May 25, 2012 2:43 pm
Location: Somewhere on planet Earth (mostly)

Linux Mint is funded by ads and donations.
 

Return to Compiz, Conky, Docks, & Widgets

Who is online

Users browsing this forum: No registered users and 3 guests