-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathPulseAudio-include
23 lines (18 loc) · 1.33 KB
/
PulseAudio-include
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#I got issues with PulseAudio while I try to use an USB sound card: PulseAudio gets lost between the possible outputs
#I use to do the change manually with Pavucontrol, which is just a GUI for pacmd
#but nothing worth command aliases \o/
#Pavucontrol-killer from the command line
#Visualizing the stats of sinks and apps output
alias pavu="echo pacmd list-sinks \| grep index && pacmd list-sinks | grep index && echo pactl list short sink-inputs && pactl list short sink-inputs && echo [Help] pactl move-sink-input [ID] [sink] ALIAS ms [ID] [sink]"
#changing the output sink for a given app
alias ms="pactl move-sink-input"
#[Help] pactl move-sink-input [ID] [sink] ALIAS ms [ID] [sink]
#source: http://unix.stackexchange.com/questions/65246/change-pulseaudio-input-output-from-shell
#Changing the master sink (that is, the one your sound keys controls)
#The sink IDs tend to change so I just try to change and ask for a sink list to adapt
alias sw0="pacmd set-default-sink 0 && pacmd list-sinks | grep index"
alias sw1="pacmd set-default-sink 1 && pacmd list-sinks | grep index"
alias sw2="pacmd set-default-sink 2 && pacmd list-sinks | grep index"
alias sw3="pacmd set-default-sink 3 && pacmd list-sinks | grep index"
alias sw4="pacmd set-default-sink 4 && pacmd list-sinks | grep index"
alias sw5="pacmd set-default-sink 5 && pacmd list-sinks | grep index"