From 36c8e996eee855852fac8eb24489129090e845a8 Mon Sep 17 00:00:00 2001 From: Corey Woodworth Date: Sat, 19 Jul 2025 07:06:12 -0400 Subject: [PATCH] Feat: If applications have a runInTerminal flag, attempts to determine the appropriate terminal emulator to launch it with --- Bar/Modules/Applauncher.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Bar/Modules/Applauncher.qml b/Bar/Modules/Applauncher.qml index e503d17..297d905 100644 --- a/Bar/Modules/Applauncher.qml +++ b/Bar/Modules/Applauncher.qml @@ -143,12 +143,15 @@ PanelWithOverlay { return; var modelData = filteredApps[selectedIndex]; + const termEmu = Quickshell.env("TERMINAL") || Quickshell.env("TERM_PROGRAM") || none; if (modelData.isCalculator) { Qt.callLater(function () { Quickshell.clipboardText = String(modelData.result); Quickshell.execDetached(["notify-send", "Calculator Result", `${modelData.expr} = ${modelData.result} (copied to clipboard)`]); }); + } else if (modelData.runInTerminal && termEmu){ + Quickshell.execDetached([termEmu, "-e", modelData.execString.trim()]); } else if (modelData.execute) { modelData.execute(); } else {