From c1be0f0ccb87af51c5b8a1a948d0f8acb108f9de Mon Sep 17 00:00:00 2001 From: Soramane <61896496+soramanew@users.noreply.github.com> Date: Wed, 30 Jul 2025 13:33:11 +1000 Subject: config: allow configuring external audio program Closes #302 --- README.md | 1 + config/BarConfig.qml | 1 + modules/bar/popouts/Audio.qml | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d1cc4fa..a0be9ea 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,7 @@ All configuration options are in `~/.config/caelestia/shell.json`. }, "bar": { "dragThreshold": 20, + "externalAudioProgram": ["pavucontrol"], "persistent": true, "showOnHover": true, "status": { diff --git a/config/BarConfig.qml b/config/BarConfig.qml index 498b2f5..4801f1a 100644 --- a/config/BarConfig.qml +++ b/config/BarConfig.qml @@ -4,6 +4,7 @@ JsonObject { property bool persistent: true property bool showOnHover: true property int dragThreshold: 20 + property list externalAudioProgram: ["pavucontrol"] property Workspaces workspaces: Workspaces {} property Status status: Status {} property Sizes sizes: Sizes {} diff --git a/modules/bar/popouts/Audio.qml b/modules/bar/popouts/Audio.qml index 28667ec..7afacb4 100644 --- a/modules/bar/popouts/Audio.qml +++ b/modules/bar/popouts/Audio.qml @@ -43,7 +43,7 @@ ColumnLayout { StateLayer { function onClicked(): void { root.wrapper.hasCurrent = false; - Quickshell.execDetached(["pavucontrol"]); + Quickshell.execDetached(["app2unit", "--", ...Config.bar.externalAudioProgram]); } } -- cgit v1.2.3-freya