You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
509 B

#! /bin/bash
while true;
do
f=$(cat /sys/class/thermal/thermal_zone0/temp)
t=$(echo $f | cut -b -2)°C
d=$(date '+%a %b %d, %H:%M')
p=$(pacman -Qu | grep -v "\[ignored\]" | wc -l)
pi=$(pacman -Q | wc -l)
c=$(docker ps -q | wc -l)
n=$(cat /sys/class/net/eno1/operstate)
s=$(df -h / | tail -n 1 | awk '{ print $4 }')
# temp=$(curl "http://wttr.in/Adelaide?format=%t")
xsetroot -name " D: ${c} | /: ${s} | Pkgs: ${p}/${pi} | Net: ${n} | ${t} | ${d} "
sleep 60;
done;