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.

17 lines
572 B

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