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