diff options
| author | Soramane <61896496+soramanew@users.noreply.github.com> | 2025-07-30 13:33:11 +1000 |
|---|---|---|
| committer | Soramane <61896496+soramanew@users.noreply.github.com> | 2025-07-30 13:33:11 +1000 |
| commit | c1be0f0ccb87af51c5b8a1a948d0f8acb108f9de (patch) | |
| tree | b78e858eaa687c14f6647594619802c864633715 | |
| parent | [CI] chore: update flake (diff) | |
| download | caelestia-shell-c1be0f0ccb87af51c5b8a1a948d0f8acb108f9de.tar.gz caelestia-shell-c1be0f0ccb87af51c5b8a1a948d0f8acb108f9de.tar.bz2 caelestia-shell-c1be0f0ccb87af51c5b8a1a948d0f8acb108f9de.zip | |
config: allow configuring external audio program
Closes #302
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | config/BarConfig.qml | 1 | ||||
| -rw-r--r-- | modules/bar/popouts/Audio.qml | 2 |
3 files changed, 3 insertions, 1 deletions
@@ -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<string> 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]); } } |