Skip to content

Instantly share code, notes, and snippets.

@arnabdas
Created February 25, 2017 10:11
Show Gist options
  • Save arnabdas/32f1ed10bde3c0676ac7818956ee70af to your computer and use it in GitHub Desktop.
Save arnabdas/32f1ed10bde3c0676ac7818956ee70af to your computer and use it in GitHub Desktop.
In Fedora, if anything played in Chrome, sometimes the sound does not come. To fix that, a simple hack.
#!/bin/bash
pacmd list-sinks
#will show all of the available audio outputs
pacmd list-sink-inputs
#will list all programs that are currently playing music and
pacmd move-sink-input [sink input index] [sink name]
#will switch the sound input to the correct output
#https://goo.gl/fwh2zJ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment