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>
32 lines
1.0 KiB
QML
32 lines
1.0 KiB
QML
pragma Singleton
|
|
import QtQuick
|
|
import Quickshell
|
|
import Quickshell.Hyprland
|
|
|
|
// glassMxrph stand-in: glassMxrph runs on Hyprland.
|
|
Singleton {
|
|
readonly property bool isHyprland: true
|
|
readonly property bool isNiri: false
|
|
readonly property bool isSway: false
|
|
readonly property bool isMango: false
|
|
readonly property bool isLabwc: false
|
|
readonly property bool overviewActive: false
|
|
readonly property var workspaces: Hyprland.workspaces.values.map(w => ({
|
|
"id": w.id,
|
|
"idx": w.id,
|
|
"name": w.name,
|
|
"output": w.monitor ? w.monitor.name : "",
|
|
"isFocused": w.focused,
|
|
"isActive": w.active,
|
|
"isUrgent": w.urgent,
|
|
"isOccupied": w.toplevels.values.length > 0
|
|
}))
|
|
function getDisplayScale(screenName) {
|
|
const s = Quickshell.screens.find(x => x.name === screenName);
|
|
return s ? s.devicePixelRatio : 1;
|
|
}
|
|
function switchToWorkspace(workspace) {
|
|
Hyprland.dispatch("workspace " + (workspace && workspace.id !== undefined ? workspace.id : workspace));
|
|
}
|
|
}
|