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

#!/bin/bash
i=0
max=0
while [ -f "/sys/class/thermal/thermal_zone$i/temp" ]; do
if [ "$(sed 's/[0-9][0-9][0-9]$//' "/sys/class/thermal/thermal_zone$i/temp")" -gt "$max" ]; then
max="$(sed 's/[0-9][0-9][0-9]$//' "/sys/class/thermal/thermal_zone$i/temp")"
fi
i=$((i+1))
done
icon=
echo "^c#bf616a^$icon^d^ $max°C"