X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=bin%2Fkhatus_show;h=a5fbae80f983a7ed6af7b508fdc51ef6046482e1;hb=4c935074361a3acd2f868b8b605a741078397ea1;hp=e43b55638599241fb15e213232bd05c8fc482053;hpb=1b554fcaa226aae6025e8d448504e8cee6e80d2f;p=khatus.git diff --git a/bin/khatus_show b/bin/khatus_show index e43b556..a5fbae8 100755 --- a/bin/khatus_show +++ b/bin/khatus_show @@ -44,10 +44,9 @@ disk=$( function round(n) {return int(n + 0.5)} $1 == "/dev/mapper/kubuntu--vg-root" { - total = $2; - used = $3; + curr = $5; + sub("%$", "", curr); file = "/home/siraaj/var/run/status/disk_space_used_percentage"; - curr = round(used / total * 100); getline prev < file; print curr > file; if (curr > prev) { @@ -279,6 +278,8 @@ echo \ W:$wifi\ \ \ + $signal_last_msg_age\ + \ $weather\ \ $datetime \