From f9efa56caeeb5289d6b2314e50041a1b7055a3c8 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 5 Aug 2025 17:25:30 +0800 Subject: feat: add launcher support and image clipboard history utility - Integrated a new Launcher component into the shell.qml for improved application launching. - Implemented an IPC handler to toggle the launcher visibility. - Added a new script (cliphist-img.sh) to manage image history from the clipboard. - Removed the outdated fuzzysort.js utility to streamline the codebase. - Refactored the Levenshtein distance algorithm for better performance and clarity. --- shell.qml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'shell.qml') diff --git a/shell.qml b/shell.qml index 9717548..0c5e13e 100644 --- a/shell.qml +++ b/shell.qml @@ -1,12 +1,19 @@ import Quickshell import Quickshell.Io import "bar" +import "launcher" import QtQuick import QtQuick.Layouts Scope { Bar {} + LazyLoader { + id: launcherLoader + component: Launcher { + parentLoader: launcherLoader + } + } IpcHandler { target: "qs" @@ -15,6 +22,13 @@ Scope { Quickshell.reload(hard); } } + IpcHandler { + target: "launcher" + + function toggle() { + launcherLoader.active = !launcherLoader.active; + } + } Connections { target: Quickshell -- cgit v1.2.3