9 lines
200 B
Bash
Executable file
9 lines
200 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
enabled=$(amixer sget Master | egrep -o "\[on\]" | wc -l)
|
|
if [[ $enabled == "0" ]]; then
|
|
echo "off"
|
|
else
|
|
echo $(amixer sget Master | egrep -o "[0-9]+%" | head -n 1)
|
|
fi
|
|
exit 0
|