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