Merge branch 'dev' into thesis
status: remove trailing spaces in sb-internet
This commit is contained in:
commit
7c067914ba
@ -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/eth0/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"
|
||||
|
Reference in New Issue
Block a user