aboutsummaryrefslogtreecommitdiff
path: root/bash/10-spotify.profile
blob: 33d09387386fef089a94cbe4a320b6734513d270 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

SPOTIFY_OUTPUT_REGEX="BurrBrown"

while read -r NUM NAME REST; do
	[[ "$NAME" =~ $SPOTIFY_OUTPUT_REGEX ]] && SPOTIFY_SINK=$NUM
done <<< "$(pactl list short sinks)"

export SPOTIFY_SINK