diff options
-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 + |