From 6fe2903d750a26b9a0a9cf965b11ecc0f7ab4df4 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 2 Aug 2025 17:09:55 +1000 Subject: config: add apps config Closes #318 and #305 --- modules/bar/popouts/Audio.qml | 2 +- modules/launcher/items/CalcItem.qml | 2 +- modules/launcher/services/Apps.qml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/bar/popouts/Audio.qml b/modules/bar/popouts/Audio.qml index 7afacb4..6714eb8 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(["app2unit", "--", ...Config.bar.externalAudioProgram]); + Quickshell.execDetached(["app2unit", "--", ...Config.general.apps.audio]); } } diff --git a/modules/launcher/items/CalcItem.qml b/modules/launcher/items/CalcItem.qml index 2e3c901..84c66a7 100644 --- a/modules/launcher/items/CalcItem.qml +++ b/modules/launcher/items/CalcItem.qml @@ -111,7 +111,7 @@ Item { color: Colours.palette.m3onTertiary function onClicked(): void { - Quickshell.execDetached(["app2unit", "--", "foot", "fish", "-C", `exec qalc -i '${root.math}'`]); + Quickshell.execDetached(["app2unit", "--", ...Config.general.apps.terminal, "fish", "-C", `exec qalc -i '${root.math}'`]); root.list.visibilities.launcher = false; } } diff --git a/modules/launcher/services/Apps.qml b/modules/launcher/services/Apps.qml index bfa2f87..b6999fd 100644 --- a/modules/launcher/services/Apps.qml +++ b/modules/launcher/services/Apps.qml @@ -13,7 +13,7 @@ Searcher { function launch(entry: DesktopEntry): void { if (entry.runInTerminal) Quickshell.execDetached({ - command: ["app2unit", "--", "foot", `${Quickshell.shellDir}/assets/wrap_term_launch.sh`, ...entry.command], + command: ["app2unit", "--", ...Config.general.apps.terminal, `${Quickshell.shellDir}/assets/wrap_term_launch.sh`, ...entry.command], workingDirectory: entry.workingDirectory }); else -- cgit v1.2.3-freya