From 9e38637570affe83f10bc9360b87c8f94042ff8d Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 13 Dec 2018 13:23:55 +0100 Subject: [PATCH] Center the symbol when there is no number Signed-off-by: Knut Ahlers --- .config/i3blocks/arch-update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/i3blocks/arch-update b/.config/i3blocks/arch-update index cc88aa6..b607087 100755 --- a/.config/i3blocks/arch-update +++ b/.config/i3blocks/arch-update @@ -25,10 +25,10 @@ display_num="" # Normal updates: White [ $num -gt 0 ] && { color="#ffffff" - display_num="${num}" + display_num=" ${num}" } # Requires reboot: Red (echo "${updates}" | grep -qE "^($(get_grep))") && color="#dd0000" -printf '\uf94f %s' "${color}" "${display_num}" +printf '\uf94f%s' "${color}" "${display_num}"