You are not logged in.
I created a horizontal conky config (works quite well in dwm, i also modified the dwm code so that pressing a hotkey creates a space of variable height on the bottom of the screen and runs a program, presumably to place information in that new space. The same hotkey removes this space and kills the program. Very useful), in which I want to scroll breaking news feeds. The first three rss titles scroll fine, but after the third title all I get is a single letter, and the rest of my six titles don't show up. The relevant part of my .conkyrc:
${scroll 82 5 ${rss http://feeds.cbsnews.com/CBSNewsMain 15 item_title 0} | ${rss http://rss.cnn.com/rss/cnn_latest.rss 15 item_title 0} | ${rss http://www.nytimes.com/services/xml/rss/nyt/GlobalHome.xml 15 item_title 0} | ${rss http://feeds.cbsnews.com/CBSNewsMain 15 item_title 1} | ${rss http://rss.cnn.com/rss/cnn_latest.rss 15 item_title 1} | ${rss http://www.nytimes.com/services/xml/rss/nyt/GlobalHome.xml 15 item_title 1}}
So where the phrase "title X" is a proper title, my output looks like this (while it is scrolling):
"title 1" | "title 2" | "title 3" | [random letter]
I would be very grateful to anyone who could point out the problem. Thank you.
Things I have tried to fix this (so far, will update as posts grow): change the item title (all or just the third or fourth) number, remove extra feeds. It seems that three is the limit for some reason.
WORKED: change the source so that when the rss item gets the "action" item_titles, it separates by " | " instead of newlines. Changed all instances of item_title to item_titles and removed duplicate feeds.
Last edited by RedScare (2009-09-27 21:15:04)
Offline
If you look at conky's man page for rss it says that "One thread will run for each URI specified."
Since you are having issues when you tried to add the second one, my guess is that it's just running into that original thread that was opened for that uri. Since you are trying to grab 2 titles from the same URI, you may need to change your item_title to item_titles, and then just have it grab the first 2 titles. (how, I don't have clue)
Knute
Offline
Thanks, that makes sense. So now I see where the problem is.
Now the second problem is that if I change item_title to item_titles, the titles are separated by newlines, which I cannot have given a horizontal conky setup. Any ideas?
Thanks a lot for your answer.
Offline
Ideas?
Nothing short of modifying the code to take out the line feed, no.
According to this: http://wiki.archlinux.org/index.php/Con … s_in_Conky
it's apparently set up that way on purpose.
Knute
Offline
Well, I followed your great advice and I changed the conky source code so that instead of separating titles by newlines, the rss command separates titles by " | ". Works like a charm.
Thanks for your help.
Offline
LOL You are most welcome..... perhaps, if you were to make another case and submit the patch, they conky devs might incorporate it.
Knute
Offline
I'm too lazy to make a new case, and I've never made a patch before, so unless someone else really wants this I'll probably keep it to myself.
Or until I get really bored:) Thanks again though.
Offline