2

As I understand, conky_update reloads the whole conky window every time. So, if I have rss fetching there and some scripts running they all rerun every few seconds. Is this right? Can I make the rss fetching part be very infrequent (say, every 10 hours), but other parts with few-seconds updating?

Relevant part from my .conkyrc:

update_interval 2.0

TEXT
${if_match ${desktop_number}==4}
${font GE Inspira:size=12}${color White}${alignc}Recent Blog Posts${color}${font}
${color White}${hr 1}${color}
${execp python ~/Documents/rss.py}
${color White}${hr 1}${color}
${endif} 

rss.py merely scans an rss feed and gets blog post titles & dates from it.

2

As the conky documentation notes, there is a rss variable that defaults to a 15 minute interval for checking feeds:

Download and parse RSS feeds. The interval may be a floating point value greater than 0, otherwise defaults to 15 minutes. Action may be one of the following: feed_title, item_title (with num par), item_desc (with num par) and item_titles (when using this action and spaces_in_front is given conky places that many spaces in front of each item). This object is threaded, and once a thread is created it can't be explicitly destroyed. One thread will run for each URI specified. You can use any protocol that Curl supports.

The Arch Wiki has an example:

${rss https://planet.archlinux.org/rss20.xml 1 item_titles 10 }

Where the 1 is a one-minute interval and 10 of the most recent updates are displayed.

If you intend on using a custom script, then there is a conky variable that supports an independent interval, execpi:

Same as execp but with specific interval. Interval can't be less than update_interval in configuration. Note that the output from the $execpi command is still parsed and evaluated at every interval.
  • Yes, that does work for a default rss command. However as you can see from my post I'm running a custom script (because I wanted some additional functionality). So my question is about customizing the execp command. – sashkello Sep 1 '13 at 7:39
  • 2
    Then you should use execpi... – jasonwryan Sep 1 '13 at 7:49
  • @sashkello Done... Hope that helps. – jasonwryan Sep 1 '13 at 8:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.