Make free space block show capacities when clickedw

master
Jonathan Hodgson 7 years ago
parent 66cfddfce4
commit ac43015522
  1. 7
      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]//') 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%"
echo "$percent%" echo "$percent%"
fi
if [ "$percent" -gt 80 ]; then if [ "$percent" -gt 80 ]; then
echo "#FF8000" echo "#FF8000"

Loading…
Cancel
Save