diff options
| author | Freya Murphy <freya@freyacat.org> | 2026-01-08 16:13:14 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2026-01-08 16:13:14 -0500 |
| commit | 814d2f336c6a56e53412201bf99ca69753bda71b (patch) | |
| tree | dd793d6efe906b30ced51152f377f9907f1ab06f /modules/launcher/services/Actions.qml | |
| parent | clean up lock screen (diff) | |
| download | caelestia-shell-814d2f336c6a56e53412201bf99ca69753bda71b.tar.gz caelestia-shell-814d2f336c6a56e53412201bf99ca69753bda71b.tar.bz2 caelestia-shell-814d2f336c6a56e53412201bf99ca69753bda71b.zip | |
remove themes and configs from launcher
Diffstat (limited to 'modules/launcher/services/Actions.qml')
| -rw-r--r-- | modules/launcher/services/Actions.qml | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/modules/launcher/services/Actions.qml b/modules/launcher/services/Actions.qml deleted file mode 100644 index 5c1cb6b..0000000 --- a/modules/launcher/services/Actions.qml +++ /dev/null @@ -1,52 +0,0 @@ -pragma Singleton - -import ".." -import qs.services -import qs.config -import qs.utils -import Quickshell -import QtQuick - -Searcher { - id: root - - function transformSearch(search: string): string { - return search.slice(Config.launcher.actionPrefix.length); - } - - list: variants.instances - useFuzzy: Config.launcher.useFuzzy.actions - - Variants { - id: variants - - model: Config.launcher.actions.filter(a => (a.enabled ?? true) && (Config.launcher.enableDangerousActions || !(a.dangerous ?? false))) - - Action {} - } - - component Action: QtObject { - required property var modelData - readonly property string name: modelData.name ?? qsTr("Unnamed") - readonly property string desc: modelData.description ?? qsTr("No description") - readonly property string icon: modelData.icon ?? "help_outline" - readonly property list<string> command: modelData.command ?? [] - readonly property bool enabled: modelData.enabled ?? true - readonly property bool dangerous: modelData.dangerous ?? false - - function onClicked(list: AppList): void { - if (command.length === 0) - return; - - if (command[0] === "autocomplete" && command.length > 1) { - list.search.text = `${Config.launcher.actionPrefix}${command[1]} `; - } else if (command[0] === "setMode" && command.length > 1) { - list.visibilities.launcher = false; - Colours.setMode(command[1]); - } else { - list.visibilities.launcher = false; - Quickshell.execDetached(command); - } - } - } -} |