From 07b492219f65cbd952a5caebeec764b3fd5cd477 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Tue, 19 May 2020 17:03:08 -0400 Subject: updated blocks --- i3blocks-mail.sh | 2 +- i3blocks-news.sh | 2 +- i3blocks-packages.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/i3blocks-mail.sh b/i3blocks-mail.sh index ecc45ff..b370f24 100755 --- a/i3blocks-mail.sh +++ b/i3blocks-mail.sh @@ -2,4 +2,4 @@ icon=󰶋 unread=$(ls -l ~/.mail/gmail/Inbox/new | wc -l | cut -w -f2) -[ $unread -gt 0 ] && printf "%s%s\n" $icon $unread && notify-send "$unread unread emails" +[ $unread -gt 0 ] && printf "%s%s\n" $icon $unread && notify-send "$unread unread email(s)" diff --git a/i3blocks-news.sh b/i3blocks-news.sh index f5c4eb4..9e5e92f 100755 --- a/i3blocks-news.sh +++ b/i3blocks-news.sh @@ -2,4 +2,4 @@ icon=󰎕 unread=$(newsboat -x print-unread | cut -d' ' -f1) -[ $unread -gt 0 ] && printf "$icon%s\n" $unread && notify-send "$unread unread articles" +[ $unread -gt 0 ] && printf "$icon%s\n" $unread && notify-send "$unread unread article(s)" diff --git a/i3blocks-packages.sh b/i3blocks-packages.sh index 992fc37..136a76a 100755 --- a/i3blocks-packages.sh +++ b/i3blocks-packages.sh @@ -1,5 +1,5 @@ #!/bin/sh icon=󰏖 -package_count=$(pkg upgrade -n | tail -1 | cut -s -d':' -f2) +package_count=$(pkg upgrade -n | tail -1 | cut -s -d':' -f2 | cut -w -f2) [ $package_count -gt 0 ] && printf "$icon%s\n" $package_count && notify-send "$package_count package upgrade(s) available" -- cgit v1.2.3