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

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