feat(terra): luna voice-mode readout in quickshell
Top-left under the rail: whether the mic is open, whether she is thinking, and whether she is talking — the states a 5s reply makes you want to see. No avatar yet; the meter is a placeholder for it, and the states and their colours are the part that has to read correctly first. LunaIndicator is Item-rooted so render.sh can shoot all five states offscreen (tests/LunaIndicatorHeadless.qml); LunaCall is the thin PanelWindow. Beside the notification stack rather than among the modals: it never takes the keyboard and raises no scrim, so it is deliberately absent from `modalOpen`. LunaState is read-only — the toggle runs the CLI — and treats a missing socket as normal, since the daemon is a user service that may start after the shell or not be installed at all. Two things measurement decided rather than reasoning. ExclusionMode .Ignore put it OVER the bar (it ignores other surfaces' zones, not just its own), and switching to Normal was not enough either: the rail's exclusive zone still left it at y=8 against a bar occupying 0..147. So the shell passes bar.contentHeight down, the same value the backdrop already reads. And the card is one chamfered path rather than a rectangle with a triangle over its corner, which left the square border showing underneath and read as an artifact. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -9,6 +9,7 @@ import qs.HyprChrome.Widgets.Polkit
|
||||
import qs.HyprChrome.Widgets.Launcher
|
||||
import qs.HyprChrome.Widgets.Askpass
|
||||
import qs.HyprChrome.Widgets.Notifications
|
||||
import qs.HyprChrome.Widgets.Luna
|
||||
|
||||
// The hyprchrome shell: owns everything the rail's surfaces have to agree on,
|
||||
// and instantiates them.
|
||||
@@ -216,6 +217,25 @@ Scope {
|
||||
screen: shell.targetScreen
|
||||
}
|
||||
|
||||
// luna's voice-mode readout. Beside the notification stack rather than
|
||||
// among the modals: it never takes the keyboard and raises no scrim, so
|
||||
// it is deliberately NOT part of `modalOpen`. It does read `targetScreen`,
|
||||
// which is what makes it belong to the shell at all.
|
||||
LunaState {
|
||||
id: lunaState
|
||||
}
|
||||
|
||||
LunaCall {
|
||||
state: lunaState
|
||||
targetScreen: shell.targetScreen
|
||||
// Same source the backdrop uses. The rail's exclusive zone does NOT
|
||||
// push this surface down on its own — measured: the bar occupies
|
||||
// y 0..147 and the readout still landed at y=8 — so the offset is
|
||||
// passed explicitly rather than left to the compositor. That makes
|
||||
// the bar's height shell state by the usual rule: a second reader.
|
||||
barHeight: bar.contentHeight
|
||||
}
|
||||
|
||||
// Polkit authentication agent. It registers for this logind session on
|
||||
// creation, so it replaces hyprpolkitagent rather than coexisting with it —
|
||||
// only one agent may hold a session (see hosts/terra/home/hyprland.nix).
|
||||
|
||||
Reference in New Issue
Block a user