Summary: | pactl get-default-sink | ||
---|---|---|---|
Product: | PulseAudio | Reporter: | Eric Toombs <ewtoombs> |
Component: | tools | Assignee: | pulseaudio-bugs |
Status: | RESOLVED MOVED | QA Contact: | pulseaudio-bugs |
Severity: | enhancement | ||
Priority: | medium | CC: | ewtoombs, lennart |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Eric Toombs
2017-04-18 16:31:54 UTC
Another possibility: % pactl set-volume "$(pactl get-default-sink)" I've since found @DEFAULT_SINK@. So looks like my first idea was already implemented. pactl get-default-sink would still be useful, though, for situations like % pacat -d "$(pactl get-default-sink).monitor" ... (In reply to Eric Toombs from comment #2) > I've since found @DEFAULT_SINK@. So looks like my first idea was already > implemented. pactl get-default-sink would still be useful, though, for > situations like > > % pacat -d "$(pactl get-default-sink).monitor" ... That particular example doesn't need any new features, because you can use @DEFAULT_MONITOR@. More generally, though, I think it would be nice if pactl would have more fine-grained querying capabilities for situations where you need just one bit of information in a script (also, the current info/list commands are not guaranteed to not change their output format, so parsing pactl output in scripts is a bit fragile). -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/445. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.