How To Wiki

How to add an RSS feed to Conky/

< How to add an RSS feed to Conky

1,797pages on
this wiki
Add New Page
Talk0 Share

Bash script to be used with Conky. The script displays a simple RSS feed. It requires curl

 # RSS Feed Display Script by Hellf[i]re v0.1
# This script is designed for most any RSS Feed. As some feeds may not be
# completely compliant, it may need a bit of tweaking
# This script depends on curl.
# Gentoo: emerge -av net-misc/curl
# Debian: apt-get install curl
# Homepage:
# Usage:
# .conkyrc: ${execi [time] /path/to/script/}
# Usage Example
# ${execi 300 /home/youruser/scripts/}

#RSS Setup
URI=,4313,1,00.rss #URI of RSS Feed
LINES=6 #Number of headlines

#Environment Setup
EXEC="/usr/bin/curl -s" #Path to curl

#Work Start
$EXEC $URI | grep title |\
sed -e :a -e 's/<[^>]*>//g;/</N' |\
sed -e 's/[ \t]*//' |\
sed -e 's/\(.*\)/ \1/' |\
sed -e 's/\.//' |\
sed -e 's/\"//' |\
sed -e 's/\"//' |\
head -n $(($LINES + 2)) |\
tail -n $(($LINES))


Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.