From 3284e727b7a2a076d55047408d07a45d5fe2931c Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Thu, 3 Nov 2022 10:28:43 +0100 Subject: [PATCH] [status] fix: trailing spaces in sb-internet --- .local/bin/statusbar/sb-internet | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.local/bin/statusbar/sb-internet b/.local/bin/statusbar/sb-internet index cc97934..9be2376 100755 --- a/.local/bin/statusbar/sb-internet +++ b/.local/bin/statusbar/sb-internet @@ -10,7 +10,7 @@ ###################################################################### -# Wifi quality percentage and  icon if ethernet is connected. +# Wifi ssid and  icon if ethernet is connected. ssid="$(wpa_cli status | grep -i ^ssid | sed -e 's/.*=//')" state="$(wpa_cli status | grep -i ^wpa_state | sed -e 's/.*=//')" case "$state" in @@ -20,9 +20,9 @@ case "$state" in esac eth="$(cat /sys/class/net/enp0s31f6/operstate)" if [ "up" = "$eth" ]; then - str="$(printf "%s /  " "$str")" + str="$(printf "%s / " "$str")" fi vpn="$(pidof openvpn)" -[ -n "$vpn" ] && str="$(printf "%s  " "$str")" +[ -n "$vpn" ] && str="$(printf "%s " "$str")" printf " %s " "$str"