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>
25 lines
1018 B
QML
25 lines
1018 B
QML
pragma Singleton
|
|
import QtQuick
|
|
import Quickshell
|
|
|
|
// glassMxrph stand-in: Noctalia toasts become desktop notifications.
|
|
Singleton {
|
|
function notify(urgency, title, description, duration) {
|
|
Quickshell.execDetached(["notify-send", "-a", "glassMxrph", "-u", urgency, "-t", String(duration || 4000), String(title || ""), String(description || "")]);
|
|
}
|
|
function showNotice(title, description = "", icon = "", duration = 3000, actionLabel = "", actionCallback = null) {
|
|
notify("low", title, description, duration);
|
|
}
|
|
function showInfo(title, description = "", icon = "", duration = 3000) {
|
|
notify("low", title, description, duration);
|
|
}
|
|
function showWarning(title, description = "", duration = 4000, actionLabel = "", actionCallback = null) {
|
|
notify("normal", title, description, duration);
|
|
}
|
|
function showError(title, description = "", duration = 6000, actionLabel = "", actionCallback = null) {
|
|
notify("critical", title, description, duration);
|
|
}
|
|
function dismissToast() {
|
|
}
|
|
}
|