diff options
Diffstat (limited to '.local/bin/conky/rss.sh')
-rwxr-xr-x | .local/bin/conky/rss.sh | 18 |
1 files changed, 18 insertions, 0 deletions
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}' |