17 lines
324 B
Bash
Executable file
17 lines
324 B
Bash
Executable file
#!/bin/sh
|
|
|
|
temp1=70
|
|
temp2=85
|
|
|
|
temp=$(nvidia-smi | grep 'Default' | awk '{print $3}' | sed 's/C//')
|
|
temp=${temp%???}
|
|
|
|
if [ "$temp" -ge "$temp2" ] ; then
|
|
echo "Gpu: <fc=#C1514E>$temp</fc>°C"
|
|
elif [ "$temp" -ge "$temp1" ] ; then
|
|
echo "Gpu: <fc=#C1A24E>$temp</fc>°C"
|
|
else
|
|
echo "Gpu: <fc=#AAC0F0>$temp</fc>°C"
|
|
|
|
fi
|