From 551e9143422b648efc131d89117c55e187a66067 Mon Sep 17 00:00:00 2001 From: afonsofrancof Date: Sat, 5 Nov 2022 16:21:47 +0000 Subject: [PATCH] Added disk util to xmobar --- .config/xmobar/scripts/disk.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 .config/xmobar/scripts/disk.sh diff --git a/.config/xmobar/scripts/disk.sh b/.config/xmobar/scripts/disk.sh new file mode 100755 index 0000000..a15fa2b --- /dev/null +++ b/.config/xmobar/scripts/disk.sh @@ -0,0 +1,3 @@ +#!/bin/sh +freespace=$(btrfs fi usage / | grep -Po 'Free \(estimated\):.*' | awk '{print $3}') +echo "Disk (Free): $freespace"