But not too short.
This commit is contained in:
parent
a276c195cb
commit
a8f0cdaf6a
3 changed files with 4 additions and 3 deletions
|
@ -13,4 +13,4 @@ for i in $(cat ~/.local/share/passwords); do
|
||||||
[ $count -ne 0 ] && export unread=$((unread + count))
|
[ $count -ne 0 ] && export unread=$((unread + count))
|
||||||
fi
|
fi
|
||||||
done
|
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^" ;;
|
down) printf " ^c#ffffff^^b#770000^ no wifi^d^" ;;
|
||||||
up)
|
up)
|
||||||
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] \
|
[ -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
|
esac
|
||||||
|
|
|
@ -5,7 +5,7 @@ static const Block blocks[] = {
|
||||||
{"", "sb-mail", 60, 16 },
|
{"", "sb-mail", 60, 16 },
|
||||||
{"", "sb-volume", 0, 12 },
|
{"", "sb-volume", 0, 12 },
|
||||||
{"\uf241 ", "sb-battery", 3, 0 },
|
{"\uf241 ", "sb-battery", 3, 0 },
|
||||||
{"\uf1eb ", "sb-network", 1, 0 },
|
{"\uf1eb ", "sb-network", 1, 0 },
|
||||||
{"\uf073 ", "date '+[%e] %I:%M:%S %p |'", 1, 0 },
|
{"\uf073 ", "date '+[%e] %I:%M:%S %p |'", 1, 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue