But not too short.
This commit is contained in:
parent
a276c195cb
commit
a8f0cdaf6a
@ -13,4 +13,4 @@ for i in $(cat ~/.local/share/passwords); do
|
||||
[ $count -ne 0 ] && export unread=$((unread + count))
|
||||
fi
|
||||
done
|
||||
[ "$unread" -eq 0 ] && printf "" || printf "^c#ffffff^^b#005577^\uf7aa ${unread} new^d^"
|
||||
[ "$unread" -eq 0 ] && printf "" || printf "^c#ffffff^^b#005577^\uf7aa new mail: ${unread}^d^"
|
||||
|
@ -4,5 +4,6 @@ case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
|
||||
down) printf " ^c#ffffff^^b#770000^ no wifi^d^" ;;
|
||||
up)
|
||||
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] \
|
||||
&& printf "" || printf " ^c#ffffff^^b#770000^no ip^d^" ;;
|
||||
&& printf "$(iw dev wlan0 info | grep 'ssid ' | cut -d' ' -f2-)" \
|
||||
|| printf "^c#ffffff^^b#770000^no ip^d^" ;;
|
||||
esac
|
||||
|
@ -5,7 +5,7 @@ static const Block blocks[] = {
|
||||
{"", "sb-mail", 60, 16 },
|
||||
{"", "sb-volume", 0, 12 },
|
||||
{"\uf241 ", "sb-battery", 3, 0 },
|
||||
{"\uf1eb ", "sb-network", 1, 0 },
|
||||
{"\uf1eb ", "sb-network", 1, 0 },
|
||||
{"\uf073 ", "date '+[%e] %I:%M:%S %p |'", 1, 0 },
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user