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:
commit
99e64a7713
433 files changed
+57792
No files matched your search
@@ -0,0 +1,126 @@
|
||||
//@ pragma UseQApplication
|
||||
//@ pragma Env QT_QUICK_CONTROLS_STYLE=Basic
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import "services"
|
||||
import "core"
|
||||
import "theme"
|
||||
import "bar"
|
||||
import "settings"
|
||||
import "menus"
|
||||
import "dock"
|
||||
import "launcher"
|
||||
import "widgets"
|
||||
import "wallpaper"
|
||||
import "controlcenter"
|
||||
import "dashboard"
|
||||
import "osd"
|
||||
import "lock"
|
||||
import "plugins"
|
||||
|
||||
ShellRoot {
|
||||
readonly property var sharedGlass: GlassService
|
||||
readonly property var sharedMedia: MediaService
|
||||
Variants {
|
||||
model: ConfigService.ready ? Quickshell.screens : []
|
||||
Bar {}
|
||||
}
|
||||
Variants {
|
||||
model: ConfigService.ready && ConfigService.data.wallpaper.backend === "native" ? Quickshell.screens.filter(s=>!!ConfigService.data.wallpaper.byMonitor[s.name]) : []
|
||||
WallpaperBackground {}
|
||||
}
|
||||
DesktopWidgets {}
|
||||
WallpaperPicker {}
|
||||
ControlCenter {}
|
||||
Dashboard {}
|
||||
PluginHost {}
|
||||
Osd {}
|
||||
Lock {}
|
||||
Settings {}
|
||||
Launcher {}
|
||||
TrayMenus {}
|
||||
BarPopout {}
|
||||
Loader {
|
||||
active: ConfigService.ready && ConfigService.data.dock.enabled
|
||||
sourceComponent: Component {
|
||||
Dock {}
|
||||
}
|
||||
}
|
||||
DockContextMenu {}
|
||||
Loader {
|
||||
active: Quickshell.env("GLASSMXRPH_METRICS_TESTING") === "1"
|
||||
source: active ? Qt.resolvedUrl("testing/MetricsDriver.qml") : ""
|
||||
}
|
||||
Loader {
|
||||
active: Quickshell.env("GLASSMXRPH_POLISH_TESTING") === "1"
|
||||
source: active ? Qt.resolvedUrl("testing/PolishDriver.qml") : ""
|
||||
}
|
||||
// Test-only input driver; QtTest is not a runtime dependency.
|
||||
Loader {
|
||||
active: Quickshell.env("GLASSMXRPH_TESTING") === "1"
|
||||
source: active ? Qt.resolvedUrl("testing/TrayDriver.qml") : ""
|
||||
}
|
||||
Loader {
|
||||
active: Quickshell.env("GLASSMXRPH_DOCK_TESTING") === "1"
|
||||
source: active ? Qt.resolvedUrl("testing/DockDriver.qml") : ""
|
||||
}
|
||||
Loader {
|
||||
active: Quickshell.env("GLASSMXRPH_LAUNCHER_TESTING") === "1"
|
||||
source: active ? Qt.resolvedUrl("testing/LauncherDriver.qml") : ""
|
||||
}
|
||||
Loader {
|
||||
active: Quickshell.env("GLASSMXRPH_PLUGIN_TESTING") === "1"
|
||||
source: active ? Qt.resolvedUrl("testing/PluginDriver.qml") : ""
|
||||
}
|
||||
Loader {
|
||||
active: Quickshell.env("GLASSMXRPH_DASHBOARD_TESTING") === "1"
|
||||
source: active ? Qt.resolvedUrl("testing/DashboardDriver.qml") : ""
|
||||
}
|
||||
Loader {
|
||||
active: Quickshell.env("GLASSMXRPH_SETTINGS_TESTING") === "1"
|
||||
source: active ? Qt.resolvedUrl("testing/SettingsDriver.qml") : ""
|
||||
}
|
||||
Loader {
|
||||
active: Quickshell.env("GLASSMXRPH_MEDIA_TESTING") === "1"
|
||||
source: active ? Qt.resolvedUrl("testing/MediaDriver.qml") : ""
|
||||
}
|
||||
Loader {
|
||||
active: Quickshell.env("GLASSMXRPH_CONTROL_TESTING") === "1"
|
||||
source: active ? Qt.resolvedUrl("testing/ControlDriver.qml") : ""
|
||||
}
|
||||
IpcHandler {
|
||||
target: "shell"
|
||||
function settings(): void {
|
||||
ShellState.toggleSettings();
|
||||
}
|
||||
function openSettings(page: string): void {
|
||||
ShellState.openSettings(page);
|
||||
}
|
||||
function close(): void {
|
||||
ShellState.wallpaperPickerOpen = false;
|
||||
ShellState.controlCenterOpen = false;
|
||||
ShellState.dashboardOpen = false;
|
||||
ShellState.settingsOpen = false;
|
||||
ShellState.launcherOpen = false;
|
||||
}
|
||||
function setPreference(path: string, json: string): bool {
|
||||
try {
|
||||
return ConfigService.setValue(path, JSON.parse(json));
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
function status(): string {
|
||||
return JSON.stringify({
|
||||
ready: ConfigService.ready,
|
||||
error: ConfigService.error,
|
||||
accent: Theme.accent.toString(),
|
||||
settingsOpen: ShellState.settingsOpen,
|
||||
settingsPage: ShellState.settingsPage,
|
||||
launcherOpen: ShellState.launcherOpen,
|
||||
accentSource: ConfigService.ready ? ConfigService.data.appearance.accentSource : "loading"
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user