diff options
author | Adam T. Carpenter <atc@53hor.net> | 2020-11-30 18:28:08 -0500 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2020-11-30 18:28:08 -0500 |
commit | cfb2e53ee1bbe747a10ceb3e0eca25daa454382b (patch) | |
tree | 85c32fbe2dfe6bb0e94265a3beb821addfce1b98 | |
parent | b387934988d98ca7842bf44bd94d5067e3f9f843 (diff) | |
download | scripts-cfb2e53ee1bbe747a10ceb3e0eca25daa454382b.tar.xz scripts-cfb2e53ee1bbe747a10ceb3e0eca25daa454382b.zip |
added i3blocks-weather, added radar
-rwxr-xr-x | git-create | 4 | ||||
-rwxr-xr-x | i3blocks-mail.sh | 2 | ||||
-rwxr-xr-x | i3blocks-news.sh | 2 | ||||
-rwxr-xr-x | i3blocks-weather.sh | 3 | ||||
-rwxr-xr-x | radar.sh | 4 |
5 files changed, 11 insertions, 4 deletions
@@ -4,14 +4,14 @@ # create a repo of provided name on macon and make it the upstream name=$1 -[[ ! $(echo "$name" | grep ".git" -) ]] && name="$1.git" +[ ! $(echo "$name" | grep ".git" -) ] && name="$1.git" description=$2 echo "'$name': '$description'" echo "Create repo?" read choice -[[ ! $choice == "y" ]] && exit 1 +[ ! $choice == "y" ] && exit 1 ssh git@53hor.net << EOF cd /srv/git diff --git a/i3blocks-mail.sh b/i3blocks-mail.sh index 2ec5d14..82e9582 100755 --- a/i3blocks-mail.sh +++ b/i3blocks-mail.sh @@ -2,5 +2,5 @@ icon= unread=$(ls ~/.mail/gmail/Inbox/new/ | wc -l | cut -w -f2) -[ $unread -gt 0 ] && printf "%s%s" $icon $unread && notify-send "$unread unread email(s)" +[ $unread -gt 0 ] && printf "%s%s" $icon $unread printf "\n" diff --git a/i3blocks-news.sh b/i3blocks-news.sh index 290fb04..5d64a47 100755 --- a/i3blocks-news.sh +++ b/i3blocks-news.sh @@ -2,5 +2,5 @@ icon= unread=$(newsboat -x print-unread | cut -d' ' -f1) -[ $unread -gt 0 ] && printf "%s%s" $icon $unread && notify-send "$unread unread article(s)" +[ $unread -gt 0 ] && printf "%s%s" $icon $unread printf "\n" diff --git a/i3blocks-weather.sh b/i3blocks-weather.sh new file mode 100755 index 0000000..40b186f --- /dev/null +++ b/i3blocks-weather.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +curl "https://wttr.in/?format=2" diff --git a/radar.sh b/radar.sh new file mode 100755 index 0000000..1b93f71 --- /dev/null +++ b/radar.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +curl -o /tmp/radar.gif "https://radar.weather.gov/lite/N0R/AKQ_loop.gif" && sxiv -a -s f -b /tmp/radar.gif + |