summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-05-19 17:03:08 -0400
committerAdam T. Carpenter <atc@53hor.net>2020-05-19 17:03:08 -0400
commit07b492219f65cbd952a5caebeec764b3fd5cd477 (patch)
treed83befe706cc9bae621e28ddb8af999ca98abbcc
parent86bda792526ffbd675afd3e0841cce517187bde6 (diff)
downloadscripts-07b492219f65cbd952a5caebeec764b3fd5cd477.tar.xz
scripts-07b492219f65cbd952a5caebeec764b3fd5cd477.zip
updated blocks
-rwxr-xr-xi3blocks-mail.sh2
-rwxr-xr-xi3blocks-news.sh2
-rwxr-xr-xi3blocks-packages.sh2
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"