From b5ba0692fe47d7ac559ba9debe6aec09b82f0245 Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Mon, 11 May 2020 12:59:30 +0200 Subject: [PATCH] Fix 'disk' module on bar --- .local/bin/scripts/dwmbar/disk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/scripts/dwmbar/disk b/.local/bin/scripts/dwmbar/disk index 8ea37a3..791bd4d 100755 --- a/.local/bin/scripts/dwmbar/disk +++ b/.local/bin/scripts/dwmbar/disk @@ -1,7 +1,7 @@ #!/bin/sh used() { - df -h "$1" | awk 'NR==2 { print $3 "/" $4 " GB" }' | sed 's/G\//\//g;s/G / /g' + df -h "$1" | awk 'NR==2 { print $3 "/" $2 " GB" }' | sed 's/G\//\//g;s/G / /g' } root="$(used /)"