feat: shorten cpu, gpu and network info

This commit is contained in:
Krzysztof Rudnicki 2024-11-16 21:07:21 +01:00
parent bd6250c0fe
commit 220a2af392
3 changed files with 3 additions and 3 deletions

View File

@ -45,4 +45,4 @@ if [[ "$cpu_temp" != "N/A" ]]; then
fi fi
fi fi
echo -e "<span color=\"$cpu_color\"> CPU: ${cpu_temp}°C, Load: ${cpu_load}</span>" echo -e "<span color=\"$cpu_color\"> ${cpu_temp}°C, ${cpu_load}</span>"

View File

@ -59,7 +59,7 @@ else
fi fi
# Output< # Output<
echo -e "<span color=\"$gpu_color\"> GPU: ${gpu_temp}, Load: ${gpu_load}%</span>" echo -e "<span color=\"$gpu_color\"> ${gpu_temp}, ${gpu_load}%</span>"
echo echo
echo "#FFFFFF" # Default color for fallback (ignored if markup is enabled) echo "#FFFFFF" # Default color for fallback (ignored if markup is enabled)

View File

@ -75,5 +75,5 @@ rx_rate_human=$(numfmt --to=iec --suffix=B/s $total_rx_rate)
tx_rate_human=$(numfmt --to=iec --suffix=B/s $total_tx_rate) tx_rate_human=$(numfmt --to=iec --suffix=B/s $total_tx_rate)
# Output the result with fixed width # Output the result with fixed width
printf " DL: %-8s  UL: %-8s\n" "$rx_rate_human" "$tx_rate_human" printf " %-7s  %-7s\n" "$rx_rate_human" "$tx_rate_human"
echo "#50FA7B" echo "#50FA7B"