Files
mxandClaude Opus 5.5 99e64a7713 Add glassMxrph shell sources
Initial commit of the Quickshell desktop suite: bar, dock, launcher,
settings, Control Center, dashboard, OSD, lock screen, desktop widgets,
plugin host with the vendored Noctalia/Omarchy compatibility layer,
helpers, packaging, tests and phase documentation.

Includes the optimization work so far: usage widgets and dashboard
gauges no longer animate continuously, desktop widgets pause while
covered, system controls stop flickering on background polls, dock app
matching uses an indexed catalog, and workspace ghosts are created only
for occupied slots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 22:36:17 +02:00

38 lines
1.2 KiB
QML

import QtQuick
import "../services"
import "SearchLogic.js" as Search
QtObject {
property string query: ""
property int limit: 50
property bool enabled: false
readonly property var indexed: Search.index(ApplicationsService.launchable.map(entry => ({
id: entry.id,
title: entry.name,
description: entry.genericName || entry.comment || entry.id,
entry: entry,
fields: [
{
text: entry.name
},
{
text: entry.genericName,
penalty: 150
},
{
text: entry.id,
penalty: 300
},
{
text: entry.keywords.join(" "),
penalty: 200
},
{
text: entry.comment,
penalty: 500
}
]
})))
readonly property var results: enabled ? Search.rank(indexed, query, limit) : []
}