summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmybar/mybar.awk5
1 files changed, 5 insertions, 0 deletions
diff --git a/mybar/mybar.awk b/mybar/mybar.awk
index d16dbf1..44fbc58 100755
--- a/mybar/mybar.awk
+++ b/mybar/mybar.awk
@@ -125,6 +125,11 @@ $1 == "wifi" {
if(length(tmp) > 10) {
tmp=substr(tmp, 1, 8) ".."
}
+
+ while(length(tmp) < 10) {
+ tmp=tmp " "
+ }
+
f = int(($3+5) / 10)
wifi = "\\u3" substr(tmp, 1, f) "\\u4" substr(tmp, 1+f, 10-f) "\\ur"
}