But not too short.

This commit is contained in:
Bartek Stalewski 2022-04-14 15:33:56 +02:00
parent a276c195cb
commit a8f0cdaf6a
3 changed files with 4 additions and 3 deletions

View File

@ -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^"

View File

@ -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

View File

@ -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 },
};