Skip to content

Instantly share code, notes, and snippets.

@hyOzd
Created August 29, 2014 19:11
Show Gist options
  • Save hyOzd/84704d81bb4668cb8133 to your computer and use it in GitHub Desktop.
Save hyOzd/84704d81bb4668cb8133 to your computer and use it in GitHub Desktop.
pacmd list-sinks | grep -oPz "index: \K\d+(?=\n^\tname: <`pactl stat | grep -oP "Default Sink: \K.+"`>)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment