Skip to content

Instantly share code, notes, and snippets.

@Y4suyuki
Created October 10, 2021 15:53
Show Gist options
  • Save Y4suyuki/413cb35639d86f65cd5983c376e00dc7 to your computer and use it in GitHub Desktop.
Save Y4suyuki/413cb35639d86f65cd5983c376e00dc7 to your computer and use it in GitHub Desktop.
set default sink as HDMI monitor for pulse audio
#!/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