From 89f43ff91f360126d357e62ae5735eb20bb6ffe8 Mon Sep 17 00:00:00 2001 From: Eric Phillips Date: Sun, 30 Mar 2014 17:16:17 -0600 Subject: [PATCH] adding volume.sh to repo --- volume.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 volume.sh diff --git a/volume.sh b/volume.sh new file mode 100755 index 0000000..ed0e314 --- /dev/null +++ b/volume.sh @@ -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