Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. inactive_sink_id=$(pacmd list-sinks | grep -E "[^*] index: [0-9]+" | sed -r -e "s/.*([0-9]+)/1/g")
  2.  
  3. pacmd set-default-sink $inactive_sink_id
  4.  
  5. move_sink_to_id=$(pacmd list-sink-inputs | grep -E "index: [0-9]+" | sed -r -e "s/.* ([0-9]+)/1/g")
  6.  
  7. pacmd move-sink-input $move_sink_to_id $inactive_sink_id
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement