dotfiles/.config/lemonbar/main

12 lines
310 B
Plaintext
Raw Normal View History

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")
chkinet=$(ping -c 1 192.168.1.1 >/dev/null && echo "up" || echo "off")
used=$(vmstat | awk 'END {printf $3}' | tr -d "M")
batt=$(apm -l)
echo " $date%{r}$me $version $chkinet $used $batt"
sleep 1
done