fix music recognition script

This commit is contained in:
end-4
2025-10-31 10:10:25 +01:00
parent b1cc6bd19b
commit e14c9b61d5
@@ -17,7 +17,7 @@ while getopts "i:t:s:" opt; do
esac
done
if [ "$SOURCE_TYPE" = "monitor" ]; then
MONITOR_SOURCE=$(pactl list short sources 2>/dev/null | grep -m1 monitor | awk '{print $2}' || true)
MONITOR_SOURCE=$(pactl list short sources 2>/dev/null | grep RUNNING | grep -m1 monitor | awk '{print $2}' || true)
elif [ "$SOURCE_TYPE" = "input" ]; then
MONITOR_SOURCE=$(pactl info | grep "Default Source:" | awk '{print $3}' || true)
else