diff options
author | Joe <rrbo@proton.me> | 2023-02-09 14:11:03 +0100 |
---|---|---|
committer | Joe <rrbo@proton.me> | 2023-02-09 14:11:03 +0100 |
commit | 3ff5ecd5a6a05db2ebe78907894def52985fe6be (patch) | |
tree | 99ef6d5f625579191727c848d6d69adb071ce9bd /.local | |
parent | up (diff) | |
download | dotfiles-bsd-3ff5ecd5a6a05db2ebe78907894def52985fe6be.tar.gz dotfiles-bsd-3ff5ecd5a6a05db2ebe78907894def52985fe6be.tar.bz2 dotfiles-bsd-3ff5ecd5a6a05db2ebe78907894def52985fe6be.tar.xz dotfiles-bsd-3ff5ecd5a6a05db2ebe78907894def52985fe6be.tar.zst dotfiles-bsd-3ff5ecd5a6a05db2ebe78907894def52985fe6be.zip |
up
Diffstat (limited to '.local')
-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}' |