From cfb2e53ee1bbe747a10ceb3e0eca25daa454382b Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Mon, 30 Nov 2020 18:28:08 -0500 Subject: added i3blocks-weather, added radar --- git-create | 4 ++-- i3blocks-mail.sh | 2 +- i3blocks-news.sh | 2 +- i3blocks-weather.sh | 3 +++ radar.sh | 4 ++++ 5 files changed, 11 insertions(+), 4 deletions(-) create mode 100755 i3blocks-weather.sh create mode 100755 radar.sh diff --git a/git-create b/git-create index 642016f..48fa1d7 100755 --- a/git-create +++ b/git-create @@ -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 + -- cgit v1.2.3