summaryrefslogtreecommitdiff
path: root/mybar
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2013-12-02 12:42:01 +0100
committerKevin Chabowski <kevin@kch42.de>2013-12-02 12:42:01 +0100
commit25e9dd1aab70f47d119958b117485973bd653e70 (patch)
tree24cce0e2594ee329c09a1895792ffe01fab2a3d4 /mybar
parentb3eaf4d3e1e3031054fadbc47eb749f47f901e83 (diff)
downloaddotfiles-25e9dd1aab70f47d119958b117485973bd653e70.tar.gz
dotfiles-25e9dd1aab70f47d119958b117485973bd653e70.tar.bz2
dotfiles-25e9dd1aab70f47d119958b117485973bd653e70.zip
Fixed WiFi display in mybar
Diffstat (limited to 'mybar')
-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"
}