From cab073ae08de3da46c6bf7b8c14e53a330b4ed9c Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Tue, 19 May 2020 18:51:14 -0400 Subject: hiding certain blocks when nothing to report --- i3blocks-news.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'i3blocks-news.sh') diff --git a/i3blocks-news.sh b/i3blocks-news.sh index 9e5e92f..290fb04 100755 --- a/i3blocks-news.sh +++ b/i3blocks-news.sh @@ -2,4 +2,5 @@ icon=󰎕 unread=$(newsboat -x print-unread | cut -d' ' -f1) -[ $unread -gt 0 ] && printf "$icon%s\n" $unread && notify-send "$unread unread article(s)" +[ $unread -gt 0 ] && printf "%s%s" $icon $unread && notify-send "$unread unread article(s)" +printf "\n" -- cgit v1.2.3