Get and set default source or sink
ortolot opened this issue · comments
Hello,
I would find it useful if Pulsemixer were to provide get/set-default-source/sink
commands.
It could be useful to support pseudo-IDs like @DEFAULT_SINK@
and @DEFAULT_SOURCE@
, or specific options --default-sink/source
to specify the default sink and default source for the various commands. I know that when no ID is specified, Pulsemixer acts on the default sink, but something is missing to use the default source.
Regards,
--
Tanguy Ortolo
Here is an implementation of that: https://git.ortolo.eu/contrib-pulsemixer.git/log/?h=default-sink-source
It implements:
- a support for
--id default-sink
and--id default-source
; - new options
--get-default-sink
,--get-default-source
,--set-default-sink
and--set-default-source
.
You can merge it with:
git pull https://git.ortolo.eu/git/contrib-pulsemixer.git default-sink-source