dotfiles/.config/lemonbar/main
Agnosto Dvonik 71b5fe9977 init
2022-10-01 18:16:21 -04:00

12 lines
310 B
Plaintext
Executable File

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