config: allow configuring external audio program

Closes #302
This commit is contained in:
Soramane 2025-07-30 13:33:11 +10:00
parent 01fea1d886
commit c1be0f0ccb
3 changed files with 3 additions and 1 deletions

View file

@ -156,6 +156,7 @@ All configuration options are in `~/.config/caelestia/shell.json`.
},
"bar": {
"dragThreshold": 20,
"externalAudioProgram": ["pavucontrol"],
"persistent": true,
"showOnHover": true,
"status": {

View file

@ -4,6 +4,7 @@ JsonObject {
property bool persistent: true
property bool showOnHover: true
property int dragThreshold: 20
property list<string> externalAudioProgram: ["pavucontrol"]
property Workspaces workspaces: Workspaces {}
property Status status: Status {}
property Sizes sizes: Sizes {}

View file

@ -43,7 +43,7 @@ ColumnLayout {
StateLayer {
function onClicked(): void {
root.wrapper.hasCurrent = false;
Quickshell.execDetached(["pavucontrol"]);
Quickshell.execDetached(["app2unit", "--", ...Config.bar.externalAudioProgram]);
}
}