From c8eae342fe13e0e7956be291c02269de4378681e Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Mon, 23 Mar 2020 12:21:25 -0400 Subject: [PATCH] volume multiline output error fixed --- .local/bin/statusbar/volume | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/statusbar/volume b/.local/bin/statusbar/volume index c16eded..fd59a6f 100755 --- a/.local/bin/statusbar/volume +++ b/.local/bin/statusbar/volume @@ -14,7 +14,7 @@ volstat="$(amixer get Master)" echo "$volstat" | grep "\[off\]" >/dev/null && printf "🔇\\n" && exit -vol=$(echo "$volstat" | grep -o "\[[0-9]\+%\]" | sed 's/[^0-9]*//g') +vol=$(echo "$volstat" | grep -o "\[[0-9]\+%\]" | sed "s/[^0-9]*//g;1q") if [ "$vol" -gt "70" ]; then icon="🔊"