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.

16 lines
372 B

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