Advertisement
TheAtomicAss

default.pa

Mar 28th, 2015
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.60 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. #
  4. # This file is a bash script, but the commands are intended for ~/.pulse/default.pa
  5. #
  6.  
  7. # Load Null Sink for Podcast Received Audio
  8. pactl load-module module-null-sink sink_name=podcast_skype sink_properties=device.description="PodcastSkype"
  9.  
  10. # Load Null Sink for Music to be streamed (Muzak)
  11. pactl load-module module-null-sink sink_name=muzak sink_properties=device.description="Muzak"
  12.  
  13. # Load Loopback from Muzak sink to headphone output (iec958)
  14. pactl load-module module-loopback sink=alsa_output.pci-0000_00_1b.0.iec958-stereo source=muzak.monitor sink_dont_move=true source_dont_move=true latency_msec=30 source_output_properties=media.icon_name=Muzak-logo media.name=MUZAK sink_input_properties=media.icon_name=Muzak-logo media.name=MUZAK
  15.  
  16. # Load Loopback from Podcast sink to headphone output (iec958)
  17. pactl load-module module-loopback sink=alsa_output.pci-0000_00_1b.0.iec958-stereo source=podcast_skype.monitor sink_dont_move=true source_dont_move=true latency_msec=30
  18. # This doesn't work:
  19. # source_output_properties=media.name=PodcastSkype media.icon_name=Teamspeak-icon sink_input_properties=media.name=PodcastSkype media.icon_name=Teamspeak-icon
  20.  
  21. # Load Loopback from headphone sink to DisplayPort audio out on Nvidia GTX 780.
  22. pactl load-module module-loopback source=alsa_output.pci-0000_00_1b.0.iec958-stereo.monitor sink=alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2 sink_dont_move=true source_dont_move=true latency_msec=30
  23. # This doesn't work:
  24. # source_output_properties=media.name=SPEAKERS media.icon_name=speaker sink_input_properties=media.name=SPEAKERS media.icon_name=speaker
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement