10 lines
218 B
Bash
Executable File
10 lines
218 B
Bash
Executable File
#!/bin/bash
|
|
mute=`amixer get Master | grep "Front Left:" | awk '{print $6}'`
|
|
if [ $mute == "[on]" ]
|
|
then
|
|
vol=`amixer get Master | grep "Front Left:" | awk '{print $5}' | tr -d '[]'`
|
|
echo $vol
|
|
else
|
|
echo "Mute"
|
|
fi
|