Skip to content

pactl: add getter commands

Jason Nader requested to merge ammgws/pulseaudio:getdefault into master

Adds "getter" commands as mentioned by @tanuk in #660 (comment 173350) and #445 (closed). Even if something like #812 (closed) eventually gets implemented, I think it still makes sense to have these basic getter commands to support retrieval of basic information without JSON etc parsing.

TODO in this PR:

  • get-default-sink
  • get-default-source
  • get-sink-volume
  • get-source-volume

Perhaps for a future PR:

  • implement a format argument for each getter function

Another approach may be to add a --format argument to the info command instead of creating separate getter commands, but I think separate commands should be fine since there is only a handful.

Edited by Jason Nader

Merge request reports