Skip to content

wpctl: add settings subcomand to show, delete or change settings

Julian Bouzas requested to merge julian/wireplumber:wpctl-settings into master

This MR removes the clear-persistent sub-command from the wpctl tool, and add a new settings command to show, delete or change settings. Here all the possible usages:

Show all settings and their saved values:

$ wpctl settings

Save all current setting values:

$ wpctl settings -s

Delete all current setting values:

$ wpctl settings -d

Show the value of a particular setting

$ wpctl settings <setting-name>

Save the current value of a particular setting

$ wpctl settings -s <setting-name>

Remove the saved value of a particular setting

$ wpctl settings -d <setting-name>

Set a particular setting to some value

$ wpctl settings <setting-name> <value>

Set a particular setting to some value and also save it

$ wpctl settings -s <setting-name> <value>

Note that if no settings are saved and we just started wireplumber, the command wpctl settings won't show any settings because the sm-settings metadata is empty (the configuration does not set anything by default). Ideally, it would be nice for wireplumber to set all the settings with their default values in sm-settings metadata, even if those are not in the configuration.

Merge request reports

Loading