Make free space block show capacities when clickedw

Jonathan Hodgson 7 years ago
parent 862d8a6eb9
commit 90cd13dbd1
  1. 9
      i3/blocks/freeSpace

@ -14,9 +14,14 @@ total=$(echo $line | awk -F ' ' '{print $2}')
percent=$(echo $line | awk -F ' ' '{print $5}' | sed 's/[^0-9]//')
if [ "$BLOCK_BUTTON" = "1" ]; then
echo "$used/$total"
echo "$used/$total"
else
echo "$percent%"
echo "$percent%"
fi
echo "$percent%"
echo "$percent%"
if [ "$percent" -gt 80 ]; then
echo "#FF8000"

Loading…
Cancel
Save