mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
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:
parent
5f67ed322f
commit
bdfbeeb293
@ -28,8 +28,8 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# If the first source that is not a monitor is unmuted, print 🎙️
|
# If the first source that is not a monitor is unmuted, print 🎙️
|
||||||
source="$(pamixer --list-sources | awk '!/Built/{ cnt++ ; if (cnt == 2) print $1 }')"
|
sources="$(pamixer --list-sources | awk '!/Built/{ cnt++ ; if (cnt == 2) print $1 }')"
|
||||||
[ "$(pamixer --source $source --get-mute)" = "false" ] && mic="🎙️"
|
[ "$(pamixer --source $sources --get-mute)" = "false" ] && mic="🎙️"
|
||||||
|
|
||||||
# If the audio is not muted, add % to vol
|
# If the audio is not muted, add % to vol
|
||||||
[ ! -z "$vol" ] && vol="$vol%"
|
[ ! -z "$vol" ] && vol="$vol%"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user