fastfix, mpc 0.33 can't status

This commit is contained in:
паша душный 2023-05-23 16:25:17 +03:00
parent 2ddab7cc39
commit e94df854a3

View File

@ -3,7 +3,8 @@
: "${1?How to use: $0 minutes}" : "${1?How to use: $0 minutes}"
var_sec=$((${1} * 60 )) 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 )) time_step=$(( "$var_sec" / 12 ))
vol_step=$(( "$var_vol" /12 )) vol_step=$(( "$var_vol" /12 ))