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
643 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).$(echo $f | cut -b 3-)°C
  6. d=$(date '+%a %b %d, %H:%M:%S')
  7. p=$(pacman -Qu | grep -v "\[ignored\]" | wc -l)
  8. s=$(mpc status | grep -Eo 'playing|paused' || echo "stopped")
  9. S=$(mpc current| cut -c 1-30)
  10. td=$(transmission-remote --list | grep "Downloading" | uniq -c | awk '{print $1}')
  11. [ -z $td ] && td=0
  12. ts=$(transmission-remote --list | grep "Seeding" | uniq -c | awk '{print $1}')
  13. [ -z $ts ] && ts=0
  14. xsetroot -name "Torrents Down: $td Seed: $ts | Mpc $s $S | Pkgs: $p | $d | $t"
  15. sleep 0.5;
  16. done;