Created
October 10, 2021 15:53
-
-
Save Y4suyuki/413cb35639d86f65cd5983c376e00dc7 to your computer and use it in GitHub Desktop.
set default sink as HDMI monitor for pulse audio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
index=$(pacmd list-sinks | grep hdmi -B 1 | head -n 1 | cut -d':' -f2) | |
pacmd set-default-sink "$index" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment