dotfiles/.config/xmobar/scripts/disk.sh
2022-11-05 16:21:47 +00:00

3 lines
143 B
Bash
Executable file

#!/bin/sh
freespace=$(btrfs fi usage / | grep -Po 'Free \(estimated\):.*' | awk '{print $3}')
echo "Disk (Free): <fc=#AAC0F0> $freespace</fc>"