mirror of
https://github.com/agresdominik/dotfiles.git
synced 2026-04-21 18:05:50 +00:00
Update to dotfiles
This commit is contained in:
+11
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user