diff --git a/for_orange/mpdsleep.sh b/for_orange/mpdsleep.sh index e97cfe1..0ccc13f 100644 --- a/for_orange/mpdsleep.sh +++ b/for_orange/mpdsleep.sh @@ -3,7 +3,8 @@ : "${1?How to use: $0 minutes}" var_sec=$((${1} * 60 )) -var_vol=$(mpc status %volume% | tr -d ' ,%') +# var_vol=$(mpc status %volume% | tr -d ' ,%') +var_vol=$(mpc volume | tr -d '[:punct:], ,[:alpha:]') time_step=$(( "$var_sec" / 12 )) vol_step=$(( "$var_vol" /12 ))