From 3ff5ecd5a6a05db2ebe78907894def52985fe6be Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 9 Feb 2023 14:11:03 +0100 Subject: up --- .local/bin/conky/rss.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 .local/bin/conky/rss.sh (limited to '.local/bin') diff --git a/.local/bin/conky/rss.sh b/.local/bin/conky/rss.sh new file mode 100755 index 0000000..1495035 --- /dev/null +++ b/.local/bin/conky/rss.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +os=$(cat /tmp/os) + +case $os in + 1) ping -c1 -w1 1.1.1.1 >/dev/null 2>&1 || exit ;; + 2) ping -c1 -w1 1.1.1.1 >/dev/null 2>&1 || exit ;; + 3) ping -c1 -t1 1.1.1.1 >/dev/null 2>&1 || exit ;; +esac + +echo '${color #ebdbb2}${font1}HACKER NEWS ${hr}${font2}${color #928374} +${rss https://hnrss.org/frontpage 900 item_titles 10} + +${color #ebdbb2}${font1}BBC NEWS WORLD ${hr}${font2}${color #928374} +${rss https://feeds.bbci.co.uk/news/rss.xml 900 item_titles 10} + +${color #ebdbb2}${font1}BBC NEWS EUROPE ${hr}${font2}${color #928374} +${rss http://feeds.bbci.co.uk/news/world/europe/rss.xml 900 item_titles 10}' -- cgit v1.2.3