manr: fix
[copyleftie-scripts.git] / volget
blob473816ec0263875304556aae2ed997a4e981e75a
1 #!/bin/execlineb -WP
2 # volget - output the sndio(7) master volume as an integral percentage
4 backtick -i -n mvol {
5         pipeline { aucatctl }
6                 awk -F= "/^master/ { print $2 }"
8 importas -u mvol mvol
10 backtick -i -n mvolf { hoc -e ${mvol}" * 100/127" }
11 importas -u mvolf mvolf
13 printf %3.0f ${mvolf}