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"