Change $source back to $sources

"source" is a command so it might be confusing for someone unfamiliar with the code
Typical fix spelling mistake PR lol
This commit is contained in:
cronidea 2021-09-28 20:57:44 +01:00 committed by GitHub
parent 5f67ed322f
commit bdfbeeb293
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,8 +28,8 @@ else
fi
# If the first source that is not a monitor is unmuted, print 🎙️
source="$(pamixer --list-sources | awk '!/Built/{ cnt++ ; if (cnt == 2) print $1 }')"
[ "$(pamixer --source $source --get-mute)" = "false" ] && mic="🎙️"
sources="$(pamixer --list-sources | awk '!/Built/{ cnt++ ; if (cnt == 2) print $1 }')"
[ "$(pamixer --source $sources --get-mute)" = "false" ] && mic="🎙️"
# If the audio is not muted, add % to vol
[ ! -z "$vol" ] && vol="$vol%"