Add polished system feedback overlays
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user