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>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-10-07 22:36:17 +02:00
commit 99e64a7713
433 files changed
+57792

No files matched your search

+50
View File
@@ -0,0 +1,50 @@
pragma Singleton
import QtQuick
import Quickshell
import "../core"
Singleton {
id: root
property string pending: ""
function request(action) {
// The built-in lock screen needs no external locker.
if (action === "lock" && ConfigService.ready && ConfigService.data.lock.enabled) {
ShellState.requestLock();
return true;
}
if (!SystemService.state.power || !SystemService.state.power[action] || SystemService.acting)
return false;
if (["logout", "reboot", "shutdown"].includes(action)) {
pending = action;
return true;
}
if (!["lock", "suspend"].includes(action))
return false;
return SystemService.action("power", action, false);
}
function confirm() {
if (!pending || SystemService.acting)
return false;
const action = pending;
pending = "";
return SystemService.action("power", action, true);
}
function cancel() {
pending = "";
}
Connections {
target: ShellState
function onControlCenterOpenChanged() {
if (!ShellState.controlCenterOpen)
root.cancel();
}
function onSettingsPageChanged() {
root.cancel();
}
function onSettingsOpenChanged() {
if (!ShellState.settingsOpen)
root.cancel();
}
}
}