#!/usr/bin/env bash while true; do VOLUME_LEVEL=$(amixer get Master | egrep -o '[0-9]{1,3}%') echo "VOL: $VOLUME_LEVEL" done