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. --- config/Launcher.qml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 config/Launcher.qml (limited to 'config/Launcher.qml') diff --git a/config/Launcher.qml b/config/Launcher.qml new file mode 100644 index 0000000..ca0748d --- /dev/null +++ b/config/Launcher.qml @@ -0,0 +1,44 @@ +pragma Singleton + +import Quickshell +import QtQuick +import qs.launcher.components + +Singleton { + id: root + + readonly property int defaultWidth: 500 + + readonly property int widgetWidth: 700 + readonly property int widgetHeight: 200 + + readonly property int innerMargin: 5 + + readonly property int borderRadius: Style.rounding.large + readonly property int borderWidth: 1 + + readonly property int widgetRadius: Style.rounding.small + readonly property int widgetFontSize: Style.font.size.large + + readonly property double bgTransparency: 0.4 + readonly property double widgetBgTransparency: 0.3 + readonly property double widgetTitleBgTransparency: 0.2 // as it's on top of it + + readonly property bool showWidgetTitle: true + + readonly property int topMargin: 400 + + readonly property int predictiveCompletionRadius: 6 + + readonly property list widgets: [ + Component { + Spell {} + }, + Component { + App {} + }, + Component { + Calc {} + } + ] +} -- cgit v1.2.3