From d5a53b62e09ec791274bf7b2dc33e8d70a4177d2 Mon Sep 17 00:00:00 2001 From: Krzysztof Rudnicki Date: Fri, 15 Nov 2024 14:15:50 +0100 Subject: [PATCH] feat: network info has constant speed --- i3blocks/network_monitor.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i3blocks/network_monitor.sh b/i3blocks/network_monitor.sh index 7f8ee7a..30f111c 100755 --- a/i3blocks/network_monitor.sh +++ b/i3blocks/network_monitor.sh @@ -58,6 +58,6 @@ fi rx_rate_human=$(numfmt --to=iec --suffix=B/s $rx_rate) tx_rate_human=$(numfmt --to=iec --suffix=B/s $tx_rate) -# Output the result -echo -e " DL: $rx_rate_human  UL: $tx_rate_human" +# Output the result with fixed width +printf " DL: %-8s  UL: %-8s\n" "$rx_rate_human" "$tx_rate_human" echo "#50FA7B" \ No newline at end of file