mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
volume multiline output error fixed
This commit is contained in:
parent
f6659aac33
commit
c8eae342fe
@ -14,7 +14,7 @@ volstat="$(amixer get Master)"
|
|||||||
|
|
||||||
echo "$volstat" | grep "\[off\]" >/dev/null && printf "🔇\\n" && exit
|
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
|
if [ "$vol" -gt "70" ]; then
|
||||||
icon="🔊"
|
icon="🔊"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user