Skip to content

Instantly share code, notes, and snippets.

@AlD
Created February 9, 2017 13:29
Show Gist options
  • Save AlD/f0d809a4efe44b7a43b78a29916daed8 to your computer and use it in GitHub Desktop.
Save AlD/f0d809a4efe44b7a43b78a29916daed8 to your computer and use it in GitHub Desktop.
#!/bin/bash
pa_host=pahostname.local
while IFS=": " read key value; do
export PULSE_${key^^}=$value
echo PULSE_${key^^}=$value
done < <(ssh -TNfL 4713:127.1:4713 "$pa_host" 'DISPLAY=:0 pax11publish -d')
"$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment