#!/bin/sh main() { vol="$(amixer get Master,0 | \ sed -n 's/^.*Playback [0-9]* \[\([0-9]*\)%\].*$/\1/p')" printf '🔉%3d%%\n' ${vol} } main "${@}"