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>
39 lines
1.0 KiB
QML
39 lines
1.0 KiB
QML
import QtQuick
|
|
import Quickshell
|
|
import Quickshell.Io
|
|
|
|
Process {
|
|
id: root
|
|
property string helper: "helpers/desktop.py"
|
|
property var request: ({})
|
|
signal finished(var request, var result)
|
|
function start(value) {
|
|
if (running)
|
|
return false;
|
|
request = JSON.parse(JSON.stringify(value));
|
|
command = ["python3", Quickshell.shellPath(helper), JSON.stringify(request)];
|
|
running = true;
|
|
return true;
|
|
}
|
|
stdout: StdioCollector {
|
|
id: output
|
|
}
|
|
stderr: StdioCollector {
|
|
id: errors
|
|
}
|
|
// Quickshell 0.3.1 omits QProcess::ExitStatus from its type metadata.
|
|
// qmllint disable signal-handler-parameters
|
|
onExited: code => {
|
|
let result;
|
|
try {
|
|
result = JSON.parse(output.text);
|
|
} catch (error) {
|
|
result = {
|
|
ok: false,
|
|
error: errors.text || "Provider did not return valid JSON (exit " + code + ")"
|
|
};
|
|
}
|
|
root.finished(root.request, result);
|
|
}
|
|
}
|