diff --git a/.local/bin/statusbar/getmail b/.local/bin/statusbar/getmail index 2f2da70..554dd8e 100755 --- a/.local/bin/statusbar/getmail +++ b/.local/bin/statusbar/getmail @@ -1,7 +1,4 @@ #!/bin/bash num=$(find ~/.local/share/mail/*/INBOX/new -type f | wc -l) -if [ $num != 0 ]; then - echo "📬"$num -else - echo "" -fi +[ $num != 0 ] && printf "📬%s" "$num" +printf '\n' diff --git a/.local/bin/statusbar/news b/.local/bin/statusbar/news index 667f729..900a2d2 100755 --- a/.local/bin/statusbar/news +++ b/.local/bin/statusbar/news @@ -1,4 +1,5 @@ #!/bin/bash newsboat -x reload num=$( cat /tmp/newsupdate 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ print $1}' | sed s/^0$//g)$(cat ~/.config/newsboat/.update 2>/dev/null)") -[ "$num" = "" ] || echo 📰$num +[ "$num" = "" ] || printf "📰%s" "$num" +printf '\n'