#!/bin/bash a=$(amixer sget PCM | grep % | tail -1 | awk '{print $5}' | cut -b 2- | cut -b -2) if (( $a > 70 )) then exit 0 else aumix -w + fi