Another copy of my dotfiles. Because I don't completely trust GitHub.
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.

14 lines
324 B

4 years ago
4 years ago
4 years ago
  1. #!/bin/bash
  2. i=0
  3. max=0
  4. while [ -f "/sys/class/thermal/thermal_zone$i/temp" ]; do
  5. if [ "$(sed 's/[0-9][0-9][0-9]$//' "/sys/class/thermal/thermal_zone$i/temp")" -gt "$max" ]; then
  6. max="$(sed 's/[0-9][0-9][0-9]$//' "/sys/class/thermal/thermal_zone$i/temp")"
  7. fi
  8. i=$((i+1))
  9. done
  10. icon=
  11. echo "^c#bf616a^$icon^d^ $max°C"