From 627b5f4ead088dbf1bb13e378be40b93fbf178a3 Mon Sep 17 00:00:00 2001 From: elpritchos <13980397+elpritchos@users.noreply.github.com> Date: Wed, 10 Sep 2025 15:51:28 +0900 Subject: [PATCH] Update audio switch script to filter available sinks (#1555) Filter audio sinks to include only available ports. --- bin/omarchy-cmd-audio-switch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/omarchy-cmd-audio-switch b/bin/omarchy-cmd-audio-switch index af6d53a..b49a83a 100755 --- a/bin/omarchy-cmd-audio-switch +++ b/bin/omarchy-cmd-audio-switch @@ -2,7 +2,7 @@ focused_monitor="$(hyprctl monitors -j | jq -r '.[] | select(.focused == true).name')" -sinks=$(pactl -f json list sinks) +sinks=$(pactl -f json list sinks | jq '[.[] | select([.ports[]? | .availability == "available"] | any)]') sinks_count=$(echo "$sinks" | jq '. | length') if [ "$sinks_count" -eq 0 ]; then