dotfiles/bin/bar
Agnosto Dvonik 7d2a960acc upd
2022-12-20 06:02:52 -05:00

15 lines
361 B
Plaintext
Executable File

inet_int=iwm0
while true; do
me=$(echo "$USER@$(hostname)")
version=$(uname -rv)
date=$(date "+%Y-%m-%d %H:%M")
chkinet=$(ifconfig $inet_int | grep status | cut -d " " -f2-)
used=$(vmstat | awk 'END {printf $3}' | tr -d "M")
batt=$(apm -l)
wttr=$(cat "$HOME/share/misc/wttr")
echo " $date $wttr%{r}$me $version $chkinet $used $batt% "
sleep 1
done