linux:linux
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| linux:linux [2017/06/07 14:21] – cipibad | linux:linux [2017/06/07 14:22] (current) – cipibad | ||
|---|---|---|---|
| Line 106: | Line 106: | ||
| </ | </ | ||
| - create / | - create / | ||
| + | < | ||
| + | #!/bin/sh | ||
| + | PULSE_SERVER=" | ||
| + | |||
| + | SINK_NAME=" | ||
| + | |||
| + | SINK_LIST_CMD=" | ||
| + | |||
| + | nSinks=`$SINK_LIST_CMD | grep "Name: $SINK_NAME" | ||
| + | tries=0 | ||
| + | MAX_TRIES=10 | ||
| + | |||
| + | while [ $nSinks -ne 1 -a $tries -lt $MAX_TRIES ]; do | ||
| + | nSinks=`$SINK_LIST_CMD | grep "Name: $SINK_NAME" | ||
| + | tries=$((tries+1)) | ||
| + | sleep 1 | ||
| + | done | ||
| + | |||
| + | pactl --server " | ||
| + | .analog-stereo | ||
| + | </ | ||
| + | - make the two new files executable | ||
| + | < | ||
| + | $ chmod +x / | ||
| + | </ | ||
| + | - double check and adapt to your environment (username/ | ||
linux/linux.1496845319.txt.gz · Last modified: by cipibad
