Update to dotfiles

This commit is contained in:
2025-11-12 14:23:45 +01:00
parent 73d5a0d548
commit d7b760d93e
13 changed files with 106 additions and 5 deletions
+11 -1
View File
@@ -5,8 +5,18 @@ if command -v rocm-smi &>/dev/null; then
output=$(rocm-smi --showtemp --showuse)
temp=$(echo "$output" | awk -F': ' '/Sensor edge/ {print $3; exit}')
usage=$(echo "$output" | awk -F': ' '/GPU use/ {print $3; exit}')
echo "${usage}% ${temp}°C"
echo "${usage}% ${temp}°C"
echo "${usage}% ${temp}°C"
if [ "$usage" -ge 90 ]; then
echo "#ffcc66"
else
echo "#ffffff"
fi
else
echo "N/A"
echo "N/A"
echo "#ffffff"
fi