#!/bin/sh
orange=#cb4b16
red=#dc322f
cyan=#2aa198
color=$cyan
vol="$(pamixer --get-volume)"
if [ "$(pamixer --get-mute)" = true ]; then
vol=MUTE
color=$red
icon="" # fa-volume-off f026
echo "$icon $vol"
fi
if [ "$vol" -gt "100" ]; then
icon=""
color=$orange
elif [ "$vol" -gt "70" ]; then
icon=""
elif [ "$vol" -gt "30" ]; then
icon=""
elif [ "$vol" -gt "0" ]; then
icon=""
else
vol=MUTE
color=$red
icon=""
fi
echo "$icon $vol"