Skip to content

Commit

Permalink
fix: pa_list_sinks not working in listen mode
Browse files Browse the repository at this point in the history
was using $OPT_LISTEN which is from v2 of i3-volume. v3 uses commands and as such this variable doesn't exist anymore

Signed-off-by: Beau Hastings <[email protected]>
  • Loading branch information
hastinbe committed Dec 24, 2024
1 parent bcceffe commit 772349d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion volume
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ setup_audio() {
define_pulseaudio_functions() {
# Executes `pactl list sinks` or return its output if called previously
pa_list_sinks() {
if $OPT_LISTEN || empty "$PA_LIST_SINKS"; then
if [[ $COMMAND == "listen" ]] || empty "$PA_LIST_SINKS"; then
PA_LIST_SINKS=$(pactl list sinks)
fi
echo "$PA_LIST_SINKS"
Expand Down

0 comments on commit 772349d

Please sign in to comment.