[status] fix: spaces + icons
This commit is contained in:
parent
13c2b6f27e
commit
e050010753
@ -14,7 +14,7 @@
|
|||||||
ssid="$(wpa_cli status | grep -i ^ssid | sed -e 's/.*=//')"
|
ssid="$(wpa_cli status | grep -i ^ssid | sed -e 's/.*=//')"
|
||||||
state="$(wpa_cli status | grep -i ^wpa_state | sed -e 's/.*=//')"
|
state="$(wpa_cli status | grep -i ^wpa_state | sed -e 's/.*=//')"
|
||||||
case "$state" in
|
case "$state" in
|
||||||
COMPLETED) str="$(printf " %s" $ssid)" ;;
|
COMPLETED) str="$(printf " %s" $ssid)" ;;
|
||||||
INTERFACE_DISABLED) str="WIFI DOWN" ;;
|
INTERFACE_DISABLED) str="WIFI DOWN" ;;
|
||||||
*) str="$(printf "NO WIFI")";;
|
*) str="$(printf "NO WIFI")";;
|
||||||
esac
|
esac
|
||||||
|
@ -24,4 +24,4 @@ do
|
|||||||
done
|
done
|
||||||
[ -n "$unread" ] && unread="$(echo "$unread" | cut -c 2-)" || exit
|
[ -n "$unread" ] && unread="$(echo "$unread" | cut -c 2-)" || exit
|
||||||
|
|
||||||
printf " %s%s " "$unread" "$icon"
|
printf " %s%s " "$unread" "$icon"
|
||||||
|
Reference in New Issue
Block a user