[status] fix: statusbar icons spacing
This commit is contained in:
parent
de5d6d68df
commit
d029f52805
@ -14,13 +14,13 @@
|
|||||||
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
|
||||||
eth="$(cat /sys/class/net/enp0s31f6/operstate)"
|
eth="$(cat /sys/class/net/enp0s31f6/operstate)"
|
||||||
if [ "up" = "$eth" ]; then
|
if [ "up" = "$eth" ]; then
|
||||||
str="$(printf "%s / " "$str")"
|
str="$(printf "%s / " "$str")"
|
||||||
fi
|
fi
|
||||||
vpn="$(pidof openvpn)"
|
vpn="$(pidof openvpn)"
|
||||||
[ -n "$vpn" ] && str="$(printf "() %s" "$str")"
|
[ -n "$vpn" ] && str="$(printf "() %s" "$str")"
|
||||||
|
@ -19,7 +19,7 @@ do
|
|||||||
[ -n "$(echo "$acc" | sed -n '/@univ/p')" ] && box=""
|
[ -n "$(echo "$acc" | sed -n '/@univ/p')" ] && box=""
|
||||||
[ -n "$(echo "$acc" | sed -n '/@mailo/p')" ] && box=""
|
[ -n "$(echo "$acc" | sed -n '/@mailo/p')" ] && box=""
|
||||||
[ -n "$(echo "$acc" | sed -n '/@posteo/p')" ] && box=""
|
[ -n "$(echo "$acc" | sed -n '/@posteo/p')" ] && box=""
|
||||||
unread="$unread/$box$new"
|
unread="$unread/$box $new"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
[ -n "$unread" ] && unread="$(echo "$unread" | cut -c 2-)" || exit
|
[ -n "$unread" ] && unread="$(echo "$unread" | cut -c 2-)" || exit
|
||||||
|
Reference in New Issue
Block a user