diff options
author | ene <ene@sils.li> | 2023-03-05 12:18:02 +0100 |
---|---|---|
committer | ene <ene@sils.li> | 2023-03-05 12:18:02 +0100 |
commit | 836091deb558cb982f4beda35958cadeba86a9ea (patch) | |
tree | f33509d2b66b3a546d939963d84ee9e23ab53234 | |
parent | Fix(hm/conf/yambar): Use the bin path for yambar_{memory, cpu} (diff) | |
download | nixos-config-836091deb558cb982f4beda35958cadeba86a9ea.tar.gz nixos-config-836091deb558cb982f4beda35958cadeba86a9ea.zip |
Fix(hm/conf/yambar): Use /srv instead of / for disk size
/ is a tmpfs not a btrfs volume
Diffstat (limited to '')
-rw-r--r-- | home-manager/config/yambar/scripts/disk.sh | 4 |
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) |