mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2025-11-06 19:14:57 +11:00
service/pipewire: add a way to set preferred default nodes
This commit is contained in:
parent
f889f08901
commit
fdc78ae16f
4 changed files with 107 additions and 13 deletions
|
|
@ -18,9 +18,13 @@ public:
|
|||
|
||||
[[nodiscard]] PwNode* defaultConfiguredSink() const;
|
||||
[[nodiscard]] const QString& defaultConfiguredSinkName() const;
|
||||
void changeConfiguredSink(PwNode* node);
|
||||
void changeConfiguredSinkName(const QString& sink);
|
||||
|
||||
[[nodiscard]] PwNode* defaultConfiguredSource() const;
|
||||
[[nodiscard]] const QString& defaultConfiguredSourceName() const;
|
||||
void changeConfiguredSource(PwNode* node);
|
||||
void changeConfiguredSourceName(const QString& source);
|
||||
|
||||
signals:
|
||||
void defaultSinkChanged();
|
||||
|
|
@ -54,6 +58,8 @@ private:
|
|||
void setDefaultConfiguredSource(PwNode* node);
|
||||
void setDefaultConfiguredSourceName(const QString& name);
|
||||
|
||||
bool setConfiguredDefault(const char* key, const QString& value);
|
||||
|
||||
PwRegistry* registry;
|
||||
PwBindableRef<PwMetadata> defaultsMetadata;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue