Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pulseaudio Shell control Notes
- #list all sinks and what they are
- pactl list|grep -e "^Sink" -e "Name" -e "application"|grep "^Sink" -A1
- #Example Output:
- -----------------------
- Sink #0
- Name: jack_out
- Sink #1
- Name: alsa_output.pci-0000_01_00.1.hdmi-stereo
- Sink #2
- Name: alsa_output.usb-0d8c_C-Media_USB_Audio_Device-00.analog-stereo
- --
- Sink Input #1204
- application.name = "blender"
- --
- Sink Input #1320
- application.name = "MPlayer"
- -----------------------
- #Change Volume of the Current Master output
- pactl set-sink-volume @DEFAULT_SINK@ +10%
- pactl set-sink-volume @DEFAULT_SINK@ -10%
- #Control Mplayer ("Sink Input")
- pactl set-sink-input-volume 1320 +10% #Volume Down
- pactl set-sink-input-volume 1320 -10% #Volume up
- pactl set-sink-input-volume 1320 50% #Set Volume to 50%
- #First Sink ("Master Volume"?) controls
- pactl set-sink-volume 0 -10% #Down 10%
- pactl set-sink-volume 0 +10% #Up 10%
- pactl set-sink-volume 0 100% #set to 100%
- #list all programs using pulseaudio
- pactl list short sink-inputs
- #example output
- 15 0 34 protocol-native.c s16le 2ch 44100Hz
- 16 0 47 protocol-native.c s16le 2ch 44100Hz
- #change output for program to sink 1
- pacmd move-sink-input 16 1
- #change output for program to sink by name
- pacmd move-sink-input 16 <device name>
- #example:
- pacmd move-sink-input 16 alsa_output.usb-0d8c_C-Media_USB_Audio_Device-00.analog-stereo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement