|
|
- #!/bin/bash
-
- if ! xdpyinfo | grep -q VNC ; then
- 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"
- fi
|