repo.or.cz
/
copyleftie-scripts.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
manr: fix
[copyleftie-scripts.git]
/
volget
blob
473816ec0263875304556aae2ed997a4e981e75a
1
#!/bin/execlineb -WP
2
# volget - output the sndio(7) master volume as an integral percentage
3
4
backtick -i -n mvol {
5
pipeline { aucatctl }
6
awk -F= "/^master/ { print $2 }"
7
}
8
importas -u mvol mvol
9
10
backtick -i -n mvolf { hoc -e ${mvol}" * 100/127" }
11
importas -u mvolf mvolf
12
13
printf %3.0f ${mvolf}