~mil/sxmo-utils

a1a549dec14c521247784541224a065f9350d6c5 — Stacy Harper 3 months ago ad5586f
Remove states from audio menu sink list

This new parameter appeared some weeks ago and the output now looks
like:

"suspended" "foo bar"

This strip this !
1 files changed, 1 insertions(+), 1 deletions(-)

M scripts/core/sxmo_audio.sh
M scripts/core/sxmo_audio.sh => scripts/core/sxmo_audio.sh +1 -1
@@ 69,7 69,7 @@ pulsesinksset() {

pulsesinksget() {
	default_id="$(pamixer --get-default-sink | tail -n1 | cut -d" " -f1)"
	pamixer --list-sinks | tail -n+2 | while read -r id _ description; do
	pamixer --list-sinks | tail -n+2 | while read -r id _ _ description; do
		eval description="$description"
		if [ "$default_id" = "$id" ]; then
			printf "%s %s ^ %s\n" "$icon_chk" "$description" "$id"