[status] fix: trailing spaces in sb-internet

This commit is contained in:
David JULIEN 2022-11-03 10:28:43 +01:00
parent 7b912a8aa9
commit 3284e727b7
1 changed files with 3 additions and 3 deletions

View File

@ -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"