#!/bin/sh pactl subscribe | while read -r ;do case "$REPLY" in *change*) pamixer --get-volume | grep -E '^[0-9]+$';; esac done