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