#!/bin/sh STEPS=10 repeat() { printf %${2}s | sed -e "s/ /$1/g" } usage=$(expr $1 \* $STEPS / 100) if [ "$usage" -gt "$STEPS" ]; then usage=$STEPS fi printf "" repeat "󰝤" "$usage" repeat "󰧟" "$(expr $STEPS - $usage)" printf "\n"