From 8918160a7c5b65c0ece7d148a3571d5197094f10 Mon Sep 17 00:00:00 2001 From: samedamci 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 /)"