mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2025-10-07 07:22:36 +02: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
|
||||
|
||||
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="🔊"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user