Add polished system feedback overlays

This commit is contained in:
Gabriel Brown
2026-08-18 06:46:11 -04:00
parent 17e23a6cf4
commit 668983e16d
6 changed files with 267 additions and 13 deletions
+25
View File
@@ -38,6 +38,7 @@ import qs.modules.datemenu
import qs.modules.focus
import qs.modules.signals
import qs.modules.settings
import qs.modules.osd
// Clipboard and datemenu ship explicit qmldir manifests because they were
// added while this daily-driver shell was already running; that also keeps
@@ -72,6 +73,11 @@ ShellRoot {
SignalGlass {}
}
Variants {
model: Quickshell.screens
Osd {}
}
// ── Single-instance overlays ────────────────────────────────────────────
// These are always constructed but only *visible* when ShellState says so.
// They're cheap while hidden, and keeping them alive means opening the
@@ -194,6 +200,25 @@ ShellRoot {
}
}
IpcHandler {
target: "osd"
function progress(kind: string, value: int, maximum: int, label: string): void {
OsdState.progress(kind, value, maximum, label);
}
function message(kind: string, label: string): void {
OsdState.message(kind, label);
}
function hide(): void { OsdState.hide(); }
function status(): string {
return JSON.stringify({
active: OsdState.active,
monitorName: OsdState.monitorName,
state: OsdState.state
});
}
}
IpcHandler {
target: "activity"