Skip to content

docs: note Linux system prerequisites for windowed and GPU runs - #4

Closed
ImBIOS wants to merge 92 commits into
anomalyco:devfrom
ImBIOS:linux-setup-docs
Closed

ImBIOS wants to merge 92 commits into
anomalyco:devfrom
ImBIOS:linux-setup-docs

Conversation

@ImBIOS

@ImBIOS ImBIOS commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Closes #3.

Linux QA pass over all 9 examples (headless snapshots + first-pixels green on Lavapipe; details in #3): the only blocker on stock Ubuntu 24.04 is the missing XKB X11 library — every windowed example panics at startup without it. Nothing documented system deps, so this adds a short prerequisites note (apt line + Lavapipe ICD var) under the Run section, verified end to end: panic before install, clean run under Xvfb after.

Docs-only, no code touched.

thdxr and others added 30 commits October 22, 2026 14:47
A GPU UI framework for Rust: wgpu renderer, Taffy layout, Parley text,
analytic-spring motion, and rune-kit components with an OpenCode theme.
Licensed under MIT.

Published as a fresh history from the private main at a242f5a.
Reuse rune::render::write_png, rune::color::srgb_decode, and crates/rune/assets/Inter-*.ttf in rune-fx and rune-light examples, and drop unused Knob tables and duplicate array texture views.
AppSpec gains min_size (None keeps 420×400; Hex's window wants 860×560). On macOS,
set_dock_icon switches the activation policy between regular and accessory at runtime,
for a menu-bar app's "Show Dock icon" setting. examples/background takes --accessory
and a "dock on|off" command.
…, Path)

Two uber-quad kinds, KIND_SEGMENT (analytic capsule/box per stroke segment)
and KIND_TRIANGLE (ear-clipped fills, antialiased only on polygon edges), so
shapes that change every frame (waveforms, meters) never touch the glyph
atlas. examples/shapes shows a filled envelope, polylines, meters, Bezier
paths, a concave fill and hairlines. Existing kinds are unchanged: the
settings and kit-gallery snaps are byte-identical.
Waveforms in a flexible row can't know their width when the view runs; a
view box maps them onto whatever size the element lays out at. Stroke
widths stay in points.
… and never-key HUDs

Windows now holds type-erased hosts, so an app can add an overlay with its own state
type to the same loop: App::overlay(OverlaySpec, state) -> OverlayHandle<T> (show,
hide, set_edge, update, availability), centred on the top or bottom edge of the
primary display, sharing the GPU pool and never keeping the loop alive alone.
Wayland uses a zwlr_layer_shell_v1 surface on winit's display (overlay layer,
keyboard none, empty input region, preferred buffer scale); X11 an override-redirect
notification window; macOS a status-level window on all Spaces ordered front without
becoming key; Windows a WS_EX_NOACTIVATE|TRANSPARENT|LAYERED tool window shown without
activation. Hosts drop in exiting() while winit's display is still open.
examples/background drives a recording-HUD overlay (hud show|hide|top|bottom).
rune::Pixels is a cloneable, thread-safe image a producer replaces with set(w, h,
rgba); El::pixels draws it scaled into the element's rect and corner radius without
re-running the view. Each runtime keeps a CPU-side 1024² RGBA atlas (allocated on
first use, uploaded by dirty rows) that the renderer binds as an Rgba8UnormSrgb
texture at binding 2; instance kind 7 samples it bilinearly on premultiplied texels,
clamped to the image. A GPU test checks texel-for-texel drawing and new frames;
Settings and OpenCode snapshots are byte-identical.
Two threads creating Vulkan instances at once crash inside the loader (parallel GPU
tests on lavapipe; Hex saw the same with transcribe.cpp). Gpu::instance and Gpu::new
now hold a process-wide lock, so the rune tests pass in parallel again.
place(edge, margin) moves an overlay and changes its distance from the edge (Hex's
HUD uses 12 pt at the top and 24 pt at the bottom). On Windows a bottom overlay on
the primary display measures from the work area, so it stays above the taskbar.
…nels on macOS

OverlaySpec gains align/inset (centred or in a corner) and interactive (clicks reach
the view; X11 keeps the input shape, Windows drops WS_EX_TRANSPARENT|LAYERED, Wayland
reports Unavailable). OverlayHandle gains set_align and resize. On macOS winit's view
and its Metal layer move into an NSPanel with NonactivatingPanel, so a click never
activates the app and the panel never becomes key; new surfaces bind the moved view
directly and the view returns to winit's window before it drops. examples/background
adds a clickable corner capsule.
thdxr and others added 24 commits October 22, 2026 19:31
The field is built in one place for build and trigger; trigger reflects open (chevron,
hover fill) for apps that open their own menu, and never builds a listbox.
…m/rune, production deploys anoma.ly/team/rune
feat(site): docs site hosted at anoma.ly/team/rune
AppSpec::chrome: macOS full-size content view (on by default, as before) with traffic lights
placed like Electron's trafficLightPosition (re-placed after resize, scale, focus and
un-occlude), and drag_regions, which stops AppKit's titlebar band from moving the window so
only .window_drag() regions do. A double press on a .window_drag() region zooms (honouring
AppleActionOnDoubleClick); Runtime::take_titlebar_action replaces take_window_drag. Hover
groups with group_opacity/group_color and per-element hover curves, .cycle() opacity loops
that wake the loop at their own fps (hosts report wake_at to the multi-window loop), and
Drag::dx/dy. Growth and virtual rows spring horizontally so a re-centred column follows its
moving parent. Traces mark held presses as touch and instant hover swaps as intended for
motion-lint; --chrome paints the traffic lights and reports overlaps.
Sidebar under the traffic lights with Home, Search sessions, New session and pinned session
tabs (project avatar, title, busy/attention/unread marks, close on hover), a resize handle
(120-640, Beta's delayed pill), and the sidebar toggle that rides to the collapsed spot on
Beta's 0.3 s spring. Tabs persist in <data dir>/rune-opencode/tabs.json and seed read-only
from Desktop Beta's own list. Status follows /api/session/active, session.execution.*,
session.viewed and permission/form events. Fixture gains tabs, read state and a status scene;
scripts/check-shell.sh renders the headless checks.
@kitlangton

Copy link
Copy Markdown
Contributor

Thanks for this! We rewrote the repo history, so this branch no longer lines up with dev. I rebased your commit (authorship kept) in #18. Please follow along there.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linux: windowed examples panic on stock Ubuntu — libxkbcommon-x11.so missing

3 participants