---
title: "RSS Feed as Wallpaper"
description: "Pre-Req convert utility :sudo apt-get install imagemagick curl utility :sudo apt-get install curl Any wallpaper :it’s called."
url: "https://h3manth.com/scribe/rss-feed-wallpaper/"
canonical_url: "https://h3manth.com/scribe/rss-feed-wallpaper/"
markdown_url: "https://h3manth.com/scribe/blog/rss-feed-wallpaper.md"
publishDate: "2010-02-10T00:00:00.000Z"
author: "Hemanth HM"
category: "linux"
tags: ["ubuntu","bash"]
word_count: 175
reading_time_minutes: 1
x_markdown_tokens: 400
content_signal: "ai-train=yes, search=yes, ai-input=yes"
---

# RSS Feed as Wallpaper

> Pre-Req convert utility :sudo apt-get install imagemagick curl utility :sudo apt-get install curl Any wallpaper :it’s called.

**Pre-Req** **convert utility** :sudo apt-get install imagemagick **curl utility** :_sudo apt-get install curl_ **Any wallpaper** :_it's called rss.jpg here_

**The idea is pretty native :** _Step 1_ : Get the rss feed URL _Step 2_ : Scrap for the data _Step 3_ : Set the data as wallpaper

**Code template**

``

## !/bin/bash

**convert -font helvetica -fill white -pointsize 36 -draw \ 'text 500,500 "This is the data from the rss feed"' \ rss.jpg rss-current.jpg** while [ 1 ]; do
    
    
        COUNTER=0
        while [  $COUNTER -lt 10 ]; do
        <b># grep for text as per your requiremnet</b>
        text=`curl -s $URL | grep CDATA` 
    <b>cmd="convert -font helvetica -fill white -pointsize 40    -draw 'text 500,500 \"$text\"' rss.jpg rss-current.jpg"</b>
    eval $cmd       
    temp=$(stat -c%s black-current.jpg)
                if [[ $temp > 1000 ]]
                then    
             eval $cmd
                break
                fi
                sleep 5
                let COUNTER=COUNTER+1 
        done
        sleep 3
    

done Now just run the coe as background process : _$ ./rss.sh & _ You will find a new image called rss-current.jpg in the same path as your script, set it as a wallpaper and stay updated.
