From 836091deb558cb982f4beda35958cadeba86a9ea Mon Sep 17 00:00:00 2001
From: ene <ene@sils.li>
Date: Sun, 5 Mar 2023 12:18:02 +0100
Subject: Fix(hm/conf/yambar): Use /srv instead of / for disk size

/ is a tmpfs not a btrfs volume
---
 home-manager/config/yambar/scripts/disk.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'home-manager/config')

diff --git a/home-manager/config/yambar/scripts/disk.sh b/home-manager/config/yambar/scripts/disk.sh
index 568ac71e..a6e35241 100644
--- a/home-manager/config/yambar/scripts/disk.sh
+++ b/home-manager/config/yambar/scripts/disk.sh
@@ -8,8 +8,8 @@
 # Main loop
 while true; do
     # vars
-    used_space=$(btrfs filesystem usage / 2> /dev/null | awk '{if ( /Used:/ ) { print $2 } } ' | head -n1)
-    all_space=$(btrfs filesystem usage / 2> /dev/null | awk '{if ( /Device size:/ ) { print $3 } } ' | head -n1 | tr -d "GiB")
+    used_space=$(btrfs filesystem usage /srv 2> /dev/null | awk '{if ( /Used:/ ) { print $2 } } ' | head -n1)
+    all_space=$(btrfs filesystem usage /srv 2> /dev/null | awk '{if ( /Device size:/ ) { print $3 } } ' | head -n1 | tr -d "GiB")
 
 
   # Check space available (4) and percentage used (5)
-- 
cgit 1.4.1