Skip to content

Quickshell: fix the dead waveform, follow the focused output, and tighten idle work - #872

Closed
OldJobobo wants to merge 4 commits into
peteonrails:devfrom
OldJobobo:quickshell/osd-audit
Closed

OldJobobo wants to merge 4 commits into
peteonrails:devfrom
OldJobobo:quickshell/osd-audit

Conversation

@OldJobobo

Copy link
Copy Markdown
Collaborator

An audit of quickshell/, which fixes the two open Quickshell OSD bugs and a few problems that hadn't been reported.

Fixes

  • [Bug] Quickshell OSD waveform and level meter never move: audio: audio self-binds in shell.qml #774, waveform never moves. The AudioBridge id audio shadowed OsdSurface's own audio property, so audio: audio could bind the property to itself. Whether it does depends on the Qt version: on Qt 6.12 the id wins, so I couldn't reproduce it here. The id is now audioBridge, which removes the ambiguity on every version.
  • [Bug] Quickshell OSD renders on one output only and does not follow focus #775, OSD on one output only. There is now one surface per screen (Variants over Quickshell.screens), and only the one on the focused output is shown. Focus comes from Quickshell.Hyprland or Quickshell.I3, loaded with Qt.createQmlObject, so a Quickshell build without those modules still loads. When focus is unknown, every output shows the HUD. The engine picker and meeting controls also open on the focused output, and move only while closed.
  • Engine picker was missing OpenVINO (it listed 8 of the 9 ENGINE_NAMES). Its hard-coded card height also let the last row overflow the card. The height now comes from the layout.
  • Meeting controls said "requested" even when the command failed. They now report failed (exit N).

Idle work

  • Hidden OSD surfaces do no per-frame work: no audio handling, halo repaint or recipe timer. Meters reset when a surface is shown again, so it never paints a stale ring.
  • The meeting panel ran voxtype meeting show every 2 s for a whole meeting, even while closed. It now polls only while open, and refreshes as soon as it opens.
  • AudioBridge backs off exponentially (1 s up to 30 s) when the bridge binary keeps exiting, for example when it isn't installed, instead of respawning it every second forever.

Testing (Hyprland, 3 monitors, Quickshell 0.3.2, Qt 6.12)

  • Layer check with hyprctl layers: with focus known, there is exactly one voxtype-osd layer, on the focused monitor. With focus unknown, there is one per monitor. The picker opens on the focused monitor rather than Quickshell's default.
  • Switching focus between monitors every 1.5 s while recording: the HUD follows and starts from clean meters.
  • CPU over 8 s of recording: a visible HUD costs the same as before (about 1750 ms). A --no-osd recording dropped from about 380 ms to about 110 ms.
  • Bridge respawn gaps measured at 1.0, 2.1, 4.1 and 8.0 s.
  • Picker screenshots before and after: all 9 rows now fit inside the card. The meeting panel loads with no QML warnings.
  • cargo test --lib setup::quickshell passes. No files were added, so the packaging file lists don't change.

Notes

Fixes #774
Fixes #775

🤖 Generated with Claude Code

OldJobobo and others added 4 commits October 16, 2026 12:46
The AudioBridge id `audio` shadowed OsdSurface's own `audio` property,
so `audio: audio` could bind the property to itself, depending on the Qt
version, and the waveform never moved (peteonrails#774). Rename the id to
`audioBridge`.

The HUD was a single PanelWindow on Quickshell's default output (peteonrails#775).
Create one surface per screen with Variants and show only the one on
the focused output, which comes from Quickshell.Hyprland or
Quickshell.I3 and is loaded through createQmlObject so builds without
those modules still load. When focus is unknown every output shows the
HUD. The engine picker and meeting controls also open on the focused
output, and move only while they are closed.

Hidden surfaces now skip all per-frame work: the audio Connections, the
halo repaint and the recipe timer are gated on visibility, and meters
reset when a surface is shown again so it never paints a stale ring.
A --no-osd recording now costs about a third of the CPU it used to.

Fixes peteonrails#774
Fixes peteonrails#775

Co-authored-by: Daniel Knoodle <428382+dknoodle@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
voxtype-audio-bridge reconnects to the daemon socket by itself, so it
only exits when something is wrong with the binary, such as it not
being installed. The shell respawned it every second forever in that
case. Double the respawn delay on each exit, up to 30 s, and reset it
once the bridge reports a connection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The picker listed 8 engines while ENGINE_NAMES has 9, so OpenVINO
could not be selected from it. The card height was a hand-tuned
estimate that ignored row spacing and the status line, and the last
row already overflowed the card. Size the card from the layout's
implicit height instead, and only show number hints for the rows that
keys 1..9 actually select.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The panel spawned `voxtype meeting show` every 2 s for the whole length
of a meeting, even while closed and nothing read the result. Run the
poll and the elapsed ticker only while the panel is open, and refresh
both as soon as it opens.

Start/stop/pause/resume always said "requested" even when the command
failed. Use the exit code and say "failed (exit N); see voxtype logs"
when it is non-zero.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
peteonrails added a commit that referenced this pull request Nov 10, 2026
…assets

Integrate the complete reviewed pre-model-expansion source, including native
tray/language, Text Cleanup, OSD modernization and matching GGUF workers.
Retain the bounded license-link contrast repair and its real Qt regression.
Build the actual 1.2.0-rc1 package/worker versions and matching lock entries.
Make the Linux release transport reject mismatched RC versions, avoid cached
Docker layers and partial Linux matrices, and ship source-matched desktop assets.

Ultra and the seven Handy conversion additions are deferred to RC2. Their
mirrors, weights, candidate sources and evidence remain untouched.

Provenance: tray PR #438 (N / nick-tgcs), GGUF PR #908 (Carmine Paolino),
OSD PR #919 (OldJobobo), including the four equivalent #872 patches once.
This message is a proposal only. Exact-source review and Pete's publication
approval remain required; no installer drain-handshake fix is claimed.

Co-authored-by: N <38736669+nick-tgcs@users.noreply.github.com>
Co-authored-by: Carmine Paolino <carmine@paolino.me>
Co-authored-by: OldJobobo <jsbrown7@gmail.com>
@peteonrails

Copy link
Copy Markdown
Owner

These four fixes went into 1.2.0 with the Quickshell OSD rework from #919. 82e7bc1 records them in its provenance. The waveform moves now (#774), and the OSD follows the focused output on Hyprland and Sway (#775).

Thank you!

https://github.com/peteonrails/voxtype/releases/tag/v1.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants