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.
 
 
 

12 lines
356 B

#! /bin/bash
while true;
do
f=$(cat /sys/class/thermal/thermal_zone0/temp)
b=$(cat /sys/class/power_supply/BAT1/capacity)
t=$(echo $f | cut -b -2).$(echo $f | cut -b 3-)°C
d=$(date '+%a %b %d, %H:%M:%S')
p=$(pacman -Qu | grep -v "\[ignored\]" | wc -l)
xsetroot -name " Pkgs: ${p} | ${d} | ${t} | Bat: ${b}% "
sleep 0.5;
done;