15 lines
361 B
Plaintext
Executable File
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
|