[status] fix: icons
This commit is contained in:
parent
d029f52805
commit
e344488e65
@ -10,7 +10,7 @@
|
||||
######################################################################
|
||||
|
||||
|
||||
# Wifi quality percentage and icon if ethernet is connected.
|
||||
# Wifi quality percentage 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
|
||||
@ -23,6 +23,6 @@ if [ "up" = "$eth" ]; then
|
||||
str="$(printf "%s / " "$str")"
|
||||
fi
|
||||
vpn="$(pidof openvpn)"
|
||||
[ -n "$vpn" ] && str="$(printf "() %s" "$str")"
|
||||
[ -n "$vpn" ] && str="$(printf "%s " "$str")"
|
||||
|
||||
printf " %s " "$str"
|
||||
|
@ -19,7 +19,7 @@ do
|
||||
[ -n "$(echo "$acc" | sed -n '/@univ/p')" ] && box=""
|
||||
[ -n "$(echo "$acc" | sed -n '/@mailo/p')" ] && box=""
|
||||
[ -n "$(echo "$acc" | sed -n '/@posteo/p')" ] && box=""
|
||||
unread="$unread/$box $new"
|
||||
unread="$unread/$box$new"
|
||||
fi
|
||||
done
|
||||
[ -n "$unread" ] && unread="$(echo "$unread" | cut -c 2-)" || exit
|
||||
|
Reference in New Issue
Block a user