adding volume.sh to repo

This commit is contained in:
2014-03-30 17:16:17 -06:00
parent 79d991713c
commit 89f43ff91f
Executable
+9
View File
@@ -0,0 +1,9 @@
#!/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