From bdfbeeb2937e905131b79e5da72176100b2c915b Mon Sep 17 00:00:00 2001 From: cronidea <86153674+cronidea@users.noreply.github.com> Date: Tue, 28 Sep 2021 20:57:44 +0100 Subject: [PATCH] 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 --- .local/bin/statusbar/sb-volume | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/statusbar/sb-volume b/.local/bin/statusbar/sb-volume index 7000bdf5..04f0b5a7 100755 --- a/.local/bin/statusbar/sb-volume +++ b/.local/bin/statusbar/sb-volume @@ -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%"