# bbc.sh this script grabs the chosen rss feed and parses it so only 1 line is shown, edit paths ----start----- #!/bin/sh export DISPLAY=":0.0" cd /home/cirrus && wget http://feeds.bbci.co.uk/news/rss.xml TERM=xterm-256color xmlstarlet sel -T -t -m rss/channel/item -v "concat(null,' :> ',description)" -n ~/rss.xml | shuf -n 1 #TERM=xterm-256color xmlstarlet sel -T -t -m rss/channel/item -v "concat(title,' ',null)" -n ~/rss.xml | shuf -n 1 sleep 2 rm -rf /home/cirrus/rss.xml exit ---end----- # bbc this script goes in cron, will show 1 feed item in dunst or w/e libnotify uses, can also be used to post to twitter # again edit paths to audio clip (if desired) , icon etc. # */18 * * * * /home/cirrus/.bin/bbc ----start------ #!/bin/bash export DISPLAY=":0.0" msg=$( /home/cirrus/.bin/bbc.sh ) #/usr/local/bin/texnut -script -status="✌ $msg " #mpg123 /mnt/INT2/strek/Radar.mp3 && xcowsay --at 3100,100 --font=RobotoLight --time=30 --monitor=1 --image ~/.icons/bbc-n3ws-ic0n.png "$msg" mpg123 /mnt/INT2/strek/Radar.mp3 && notify-send -h string:bgcolor:#191919 -h string:fgcolor:#999999 -i ~/.icons/bbc-n3ws-ic0n.png "BBC News" "$msg" #sleep 2 exit ---end------