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))
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue