about summary refs log tree commit diff stats
path: root/home-manager/config/yambar
diff options
context:
space:
mode:
Diffstat (limited to 'home-manager/config/yambar')
-rw-r--r--home-manager/config/yambar/scripts/disk.sh4
1 files changed, 2 insertions, 2 deletions
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)