From af9bba349d22d3c7881152e5a0fdcfd20c4c8055 Mon Sep 17 00:00:00 2001 From: adrien Date: Tue, 2 Aug 2022 21:04:09 +0200 Subject: [PATCH] Updated the way to get the remaining space on /home and /root --- .config/spectrwm/bar | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.config/spectrwm/bar b/.config/spectrwm/bar index 501b882..fbf8685 100755 --- a/.config/spectrwm/bar +++ b/.config/spectrwm/bar @@ -20,14 +20,12 @@ kernelver() { } home() { - # disk=$(df -h | awk 'NR==8{print $3, $5}') - home=$(df -h | awk 'NR==8{print $3}') + home=$(df -h /home/ | awk 'NR==2{print $3}') echo -e "/home: $home" } root() { - # disk=$(df -h | awk 'NR==4{print $3, $5}') - root=$(df -h | awk 'NR==4{print $3}') + root=$(df -h /root/ | awk 'NR==2{print $3}') echo -e "/: $root" }