somesing
This commit is contained in:
@ -1,9 +1,10 @@
|
||||
#!/bin/bash
|
||||
case ${BLOCK_INSTANCE} in
|
||||
mic) GET="Capture";;
|
||||
*) GET="Master";;
|
||||
mic) DEV="Capture";;
|
||||
*) DEV="Master";;
|
||||
esac
|
||||
amixer get $GET | gawk '
|
||||
[[ ${BLOCK_BUTTON} == 1 ]] && amixer set $DEV toggle &> /dev/null
|
||||
amixer get $DEV | gawk '
|
||||
match($0, /\[([0-9]+)\%\] \[(on|off)\]/, matches) {
|
||||
audio=matches[1]
|
||||
}
|
||||
@ -13,8 +14,8 @@ amixer get $GET | gawk '
|
||||
print("off \n")
|
||||
exit 33
|
||||
}
|
||||
printf("%d%", audio)
|
||||
printf("%d", audio)
|
||||
printf("%d% \n", audio)
|
||||
printf("%d\n", audio)
|
||||
if (audio < 75) {
|
||||
print("#04B431\n")
|
||||
} else if (audio < 80) {
|
||||
|
Reference in New Issue
Block a user