dotfiles/bin/bar

15 lines
361 B
Plaintext
Raw Normal View History

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