Command contract

Developer reference.

On this page

BxRig command contract

Target (2026-11-09): Hyprland + Noctalia on CachyOS, KDE kept side by side; see plan.md section 19. setup is the headline command.

Status (2026-11-15): built. This file started as the proposal and became the design record; sections 1 to 12 are the rules and the first build, section 13 onward holds one decision section per feature, 14 the installer and the wizard. Where a sentence here and the code disagree, the code wins: docs/reference/cli.json is the command registry (96 commands and their flags, usage and examples), docs/reference/commands.md is generated from it, and bxrig help NAME prints the same text. The legacy tree in artifacts/legacy/original/ is the v0.10.0 source, kept as a feature reference and never modified.

1. Grammar

bxrig <command> [subcommand] [args...] [--yes] [--dry-run] [--json] [--quiet] [--force]
  • A command is one word from docs/reference/cli.json (setup, keys, menu, record, browser, ...); its subcommands and positional arguments are in its usage lines. Groups in the reference (Start here, Install, Desktop, Look, System, Develop, Tools) only organise the page.
  • Mutating verbs (install, apply, remove, restore, enable, disable, set, ...) need --yes; read-only ones (list, show, status, plan, doctor) never do.
  • Flags are checked against the registry before anything runs: a flag the command does not list is a usage error (exit 2, the usage line is printed); secrets run passes everything after its own flags through. An unknown command is exit 2 too.
  • CLIGetArgs() puts flags in args.options and the words in args.positionals; a flag with a value is written --name=value (the form --name value is a flag plus a positional on MatchBox).

2. Mutation rules (apply to every mutating verb)

  1. No --yes: print the exact plan, change nothing, exit 2.
  2. --dry-run with --yes: print the exact plan, change nothing, exit 0.
  3. Preflight everything before the first mutation. A preflight failure means zero changes.
  4. Never escalate privilege silently. sudo is only called for pacman steps shown in the plan.
  5. Never run AUR builds as root (exit 4).
  6. Every config file touched goes through the config service (backup, atomic replace, journal). No direct writes.
  7. Output lists succeeded and failed items separately. No rollback is promised across pacman and yay.
  8. External installer scripts (bvm, mvm, toolchain node's nvm, catalog source: script) are downloaded to a temp file, their url and sha256 are printed, and they run as the normal user (never root) with no confirmation gate and no flag: the typed EXECUTE and --allow-external-scripts were removed on 2026-11-10 (owner: running them is the point of the command). Decision 2026-11-09: no checksum pinning for these scripts.
  9. Subprocesses are launched with argument arrays, never through a shell string. The one place that starts a process is util/Proc; the few sh -c wrappers pass every value as a positional argument (detach, recording, the pull-down shells).
  10. The plan, dry-run and run protocol is one class, util/Mutation, reached through Out.plan( ... ): no --yes prints "Plan: TITLE", the extra lines and "Nothing was changed. Add --yes to apply." (exit 2); --dry-run prints "Dry run: TITLE" and the same lines (exit 0); the first failing step ends the run (exit 6). A ratchet in tests/dry-test.sh forbids hand-written plan footers.
  11. Documented exceptions to --yes: a command that changes only your own settings or starts or stops a program acts at once and takes --dry-run (themes, appearance, time format, display, notify, tiling, runner set, layout, record, webcam, window, browser private, files here, dictation toggle). Anything that installs packages, writes system files or changes login behaviour always needs --yes.

3. Exit codes

CodeMeaningExample
0Success or no-opalready installed, or --dry-run
1Check negativepackage-status says missing
2Usage error or missing confirmationno --yes, unknown flag
3Timeout, or item unavailablepacman lookup timed out, package not in any repo
4Precondition failedroot with AUR, not Arch, Java missing, not KDE where required
5Official (pacman) phase failed
6AUR (yay) phase failed
7Partial successsome items done, some failed; --json lists both
8Config conflictdrift detected, symlink or special file at target, concurrent run lock
9Internal errorbug, unexpected exception (Application.bx onError prints it and exits 9)
10An update is availableupdate check only

The codes are frozen. tests/cli-contract-test.sh and the per-command tests check them; a bad name is exit 2 everywhere (it was 4 in some commands before the Names helper); an unknown command or flag is exit 2.

Names in code. src/bxrig/util/Exit.bx names every code: ok 0, negative 1, usage and plan 2, timeout 3, precondition 4, official 5, failed 6, partial 7, conflict 8, internal 9, update 10. Cli.say, Cli.fail, Out.say and Out.fail take a name or a number; an unknown name throws. Command classes write the name (variables.out.say( "precondition", ... ), CLIExit( xit.usage() ), return new bxrig.Exit().ok();), so a typo cannot turn into a wrong exit code. The numbers on the wire are the table above. tests/dry-test.sh fails on a bare number as the code argument of say/fail and on CLIExit( N ) in Main.bx (130, Ctrl+C, is the exception).

4. --json

With --json a command prints one JSON object on stdout and no human text (Cli.envelope):

{
  "schema": 1,
  "command": "profile install",
  "version": "0.11.0-dev",
  "ok": false,
  "exit": 7,
  "dry_run": false,
  "data": { "done": [], "failed": [], "skipped": [] },
  "warnings": []
}

data is different for every command (the package commands put would_install, done, failed and skipped there, section 11); ok is true when exit is 0. A plan is exit 2 with the plan in data; a dry run is exit 0 with dry_run true.

5. Catalog (single source of truth)

The catalog is catalog/apps.json (schema 4, 349 apps today, version in catalog_version: what each app is) plus one install file per distribution, catalog/install/{arch,suse,debian,ubuntu}.json (how to install it there; see "Distributions"), packed into the binary as a resource (src/resources/catalog). It started as the legacy apps.json (482 entries) and replaced the hardcoded lists. The findings below are the 2026-11-09 audit of that legacy data and are kept as the record of why the catalog looks as it does.

Entry schema (legacy fields kept, new fields marked):

FieldNotes
id, name, kind (desktop tui web), category, descriptionas legacy
source (pacman aur pkgbuild script manual web), targetpackage name, or URL for web and script
pkgbuild source: repo, path, refBuild with makepkg as the normal user from a PKGBUILD in a public git repo, pinned to a full 40-character commit (catalog check rejects anything else), then install the result with pacman. Used for desktop apps packaged in omacom/omarchy-pkgs. The PKGBUILD is shown before it is built.
check (for script)argv array that exits 0 when installed, for example ["command","-v","pi"]
defaultbase tier flag
source_status, source_confirmedlegacy provenance flags, kept
profiles (new)list of profile ids
deps (new)other catalog ids
check (new)optional post-install check, argv array
verified_on (new)date the target was confirmed against real repos

Findings from the legacy data (historical, decisions recorded 2026-11-09):

  • Unverified sources. 176 entries are source: manual (95 tui, 81 desktop). Their package names are unverified. Proposal: a CI job that checks every pacman/aur target against real repos (Arch container, AUR RPC) and fails on unknown names. manual entries stay installable only by explicit user action.
  • Default list mismatch. 61 flagged default (29 pacman, 18 aur, 14 web). app-profile.json base lists 46. 20 defaults are not in that base list (for example ark dolphin dolphin-plugins kio-extras rclone fuse3 sshfs nfs-utils cifs-utils podman-desktop tabby beekeeper-studio google-docs google-sheets google-slides kompare filelight ffmpegthumbs kdegraphics-thumbnailers kimageformats). 5 base entries are not flagged default (dbeaver filezilla krdc podman-tui rustdesk). The 61 flags win. The 5 dropped base entries are dbeaver (pacman), filezilla (pacman), krdc (pacman), rustdesk (aur) and podman-tui (manual). Pending: keep them as curated (not default), or re-flag any as default.
  • Browsers. brave is aur (brave-bin) and default. A fresh default install therefore needs yay on day one. Decision: bootstrap installs yay only if it is not already present.
  • Preserve list. Legacy preserve (CachyOS, KDE Plasma, Hyprland, Noctalia, existing user configs) becomes enforced rules, not just text.

Named profiles keep the existing four (core jvm containers terminal) and are expressed as catalog profiles tags. Later profiles (web backend ai ops desktop full) are added only after package names are verified.

Ship vs embed (pending confirmation): the default catalog is embedded in the binary at build time, so there is one file to ship and it always matches the code. An optional ~/.config/bxrig/catalog.json adds entries or sets default/profiles on existing ids. It is validated against the same schema and can never delete or replace an embedded entry's target, so a bad override cannot redirect an install.

6. State and config layout

~/.config/bxrig/            same root as legacy
  bxrig.json                global settings
  catalog.json                optional user additions (merge-only)
  ai.json menu.json shortcuts.json ...   one file per feature, as legacy
~/.local/state/bxrig/
  journal/                    one record per apply: files, hashes, backup paths
  backups/                    backups, indexed by the journal
  lock                        single-writer lock

config list|diff|apply|restore work from the journal, so restore needs only an id. Retention default: keep the last 20 per file. Open: this applies to the user's config files that BxRig writes, not to the legacy source tree.

7. Test contract

  • A snapshot test freezes bxrig help, the exit-code table and the --json schema.
  • Every mutating verb needs these cases: success, no-op, invalid input, dependency failure, privilege rejection, partial failure, recovery.
  • Real-system cases run in tests/arch/ (non-root, real pacman). Cases needing KDE, Wayland or hardware are marked manual and tracked in the acceptance log.

8. Catalog check, validation and reporting

bxrig catalog check [--json] [--online] plus a CI job that runs it in the Arch container.

Offline validation (always, no network): schema version; unique ids; enums for kind/source; web targets are https with no credentials or control characters; package targets match ^[a-zA-Z0-9@._+-]+$; default entries have a non-manual source; profiles and deps reference existing ids; no dependency cycles.

Online verification (--online, CI): every pacman target must resolve with pacman -Si (or -Sg for groups); every aur target must resolve through the AUR RPC (/rpc/v5/info); manual targets are probed against both and reported as promotable. Results are stored per entry as verified_on and a status: ok, moved (listed source is wrong but another source has it), missing, unverified.

Reporting: a table by status and source for the console, --json for tools, and a markdown report in the CI step summary and artifact. Policy: missing entries with default: true fail CI; missing non-default entries are warnings listed in the report; moved entries are warnings with the suggested fix.

First measurement (2026-11-09, stock Arch core/extra only, so CachyOS repos and multilib are not covered):

CheckResult
pacman targets (118)111 resolve, 7 do not: 5 exist in AUR (git-cola insomnia localsend ulauncher wlogout), 2 found nowhere (intellij-idea-community-edition, swww)
aur targets (64)40 resolve in AUR, 11 are now official (doggo impala nwg-dock-hyprland opencode podman-desktop rio spotify-launcher superfile television warehouse zenmap), 13 found nowhere (beeper ctop dbgate espanso grokbot herder inshellisense notion-desktop pi-agent tmog todoist upnote zap-whatsapp)
manual targets (176)93 are official packages today (promotable, for example jq ripgrep-all tmux kitty starship terraform kubectl), 83 are not

The check must also run against the CachyOS repos on a real CachyOS machine before any missing entry is removed.

9. Open questions

  1. The 5 dropped base entries: keep as curated, or re-flag any as default?
  2. Catalog embed with merge-only user override: confirmed?
  3. Hyprland features (layout, runner, shortcuts, menus) are now in scope, not deferred.

10. Implemented so far (2026-11-09)

  • config list|diff|apply|restore|history (section 6 design; lock is a file created with fileWriteExclusive, temp files and journal records are created exclusive with their mode).
  • Global flag check and the --json envelope (sections 1 and 4) for the read-only commands.
  • catalog list|show|groups|check|version: the catalog is schema 4 plus the install files (catalog/README.md) and is packed into the binary as a resource (src/resources/catalog, read by src/bxrig/CatalogData.bx). Filters use the --name=value form (--tier=default --group=infra), because MatchBox CLIGetArgs takes --name value as a flag plus a positional. catalog check is offline: errors exit 1, warnings (unpinned pkgbuild refs, default entries without a package) do not. The user override file is deliberately last (extensibility phase).

11. Package commands on the catalog (B2, decided 2026-11-09)

Applies to plan, install-plan, install, optional-*, profile-*, package-status, package-source. All read the embedded catalog (schema 3). Hardcoded lists in Main.bx go away.

Selection

bxrig install                       # tier default
bxrig install ID [ID...]            # exactly these apps
bxrig install --profile=NAME        # a profile
bxrig install --optional            # default tier plus optional tier
  • Naming an app is enough. There is no --aur flag: anything in the catalog installs from its source (pacman, aur, pkgbuild, web).
  • Unknown id: usage error (exit 2), nothing runs.
  • Skip reasons: optional (not selected), wrong_shell and unresolved (catalog has no installable source yet; a named unresolved app is reported failed, exit 3).
  • Already installed apps are skipped with reason installed.
  • Section 2 still applies: no --yes prints the plan and exits 2; --dry-run --yes prints it and exits 0. AUR and pkgbuild builds never run as root (exit 4).
  • Profiles live in the catalog (0.3.0): a top-level profiles list and, per app, a map profile id to default/optional. --profile=NAME installs the profile's default members; --optional adds its optional ones. See catalog/README.md.
  • Shells: an app may carry shells (hyprland, plasma). The running shell comes from XDG_CURRENT_DESKTOP, overridable with --shell=hyprland|plasma|all. Non-matching apps are skipped: wrong_shell; a named app still installs.

Per-source steps

sourcestep
pacmanone pacman -S --needed call for all pacman apps (sudo shown in the plan)
aurAUR helper (yay) as the normal user, apps one at a time
pkgbuildPKGBUILD shown, makepkg as the normal user, result installed with pacman
weba .desktop launcher in ~/.local/share/applications/bxrig-<id>.desktop running brave --app=URL (written atomically, no package). The resolver adds brave to the plan when a web app is selected and brave is not installed.

Result shape (--json, inside the section 4 envelope)

data for plan, install-plan and install:

{
  "selection": { "mode": "default|ids|profile|optional", "ids": [], "profile": null },
  "would_install": [ { "id": "git", "source": "pacman", "targets": ["git"] } ],
  "done":    [ { "id": "git", "source": "pacman" } ],
  "failed":  [ { "id": "docker", "source": "pacman", "error": "target not found" } ],
  "skipped": [ { "id": "jq", "reason": "optional" } ]
}
  • plan and --dry-run fill would_install and leave done/failed empty. A real run fills done/failed and leaves would_install empty.
  • Exit: 0 all done or nothing to do; 5 pacman phase failed, 6 AUR/pkgbuild phase failed (only when nothing succeeded); 7 some done and some failed.
  • package-status ID exits 0 when installed, 1 when missing; data is { "id", "source", "installed": true|false }.
  • package-source ID prints { "id", "source", "targets", "tier", "group" }.

Human output is the same lists, one app per line with its source.

Open questions

  1. Decided: a web app counts as installed when its launcher file exists.

12. Implemented so far, B2 (2026-11-09)

  • Catalog 0.3.0: profiles, per-profile tier, shells (section 11, catalog/README.md).
  • Resolver class (selection) and Packages class (read-only commands). plan, install-plan, optional-plan, profile-plan, profile-install-plan, package-status, package-source, profile-list, desktop-list, tui-list, web-list, optional-list run on the catalog. Installed state comes from one pacman -Qq call (web apps: launcher file).
  • install, optional-install, profile-install run on the catalog through Installer (one pacman -S call, yay per AUR app, pinned PKGBUILDs via git clone + makepkg -si). Rules as in sections 2 and 11: no --yes prints the plan (exit 2), --dry-run exits 0, root with AUR or PKGBUILD builds exits 4 before any change, a named app without a source exits 3, partial results exit 7 (5 or 6 when nothing succeeded).
  • Web apps install as launchers (see section 11 table). The 28 pkgbuild apps are pinned to one commit of omacom/omarchy-pkgs and install with git clone, git checkout COMMIT, makepkg -si as the normal user (root exits 4). All of them are optional, so a plain bxrig install skips them.
  • Not on the catalog: apps-doctor, dev-plan.

13. Desktop setup (decided with the owner 2026-11-09 and 2026-11-10; all built)

Builds on sections 2 to 4 (mutation rules, exit codes, --json), the config service (section 6) and the Installer (argument arrays, done / failed / skipped). Hyprland with Noctalia is installed beside KDE Plasma; KDE is never removed or reconfigured except what --keys hands over, which is backed up first.

13.1 Commands

bxrig setup hyprland [--yes] [--dry-run] [--json]    packages, images, starter configs, shortcut files
bxrig setup plasma   [--yes] [--dry-run] [--json]    HyprKwin tiling on KDE Plasma
bxrig setup plasma --keys | --undo-keys              hand Plasma's clashing keys over / back
bxrig setup hyprland --terminal=ghostty|kitty|alacritty|foot|konsole   Super+Enter terminal (ghostty default)
bxrig setup hyprland --layout=dwindle|master|scrolling|floating        default window layout in the starter hyprland.lua (dwindle default)
bxrig setup hyprland --workspaces=N --natural-scroll --layouts=us-intl,es --theme=dark|light|auto --wallpaper=box|grid|aurora|minimal   starter choices (defaults: 2, off, us, dark, box); two or more keyboard layouts switch with Alt+Shift
bxrig setup terminal [--default=ghostty] [--also=kitty,foot,...]       install terminals, starter configs with the Nerd Font
bxrig setup shell [--shell=zsh|fish|bash]                              Starship + shell init, login shell (zsh default)
bxrig setup xremap [--build=hypr|kde] [--yes]        Cmd-style keys: AUR package, input access, user service
bxrig setup undo hyprland|plasma|xremap [--yes]      remove only what setup added
bxrig setup status [--json]
bxrig tiling on|off|status                           HyprKwin inside Plasma, no logout
bxrig keys show | search TEXT | run ID | style [traditional|mac] | set ID KEYS | reset ID | conflicts | sheet | render xremap|hyprland|plasma | check | apply [--yes] [--dry-run] [--force]   (the full usage is in cli.json)
bxrig assets list | install [--yes] [--dry-run]
bxrig session show | set hyprland|plasma [--yes] [--dry-run]
bxrig runner list | show | doctor | launch | select JSON | set P | menu-set P | launcher-command P JSON | menu-command P JSON   the launcher abstraction (13.9)
  • Every target runs, re-runs and undoes on its own; a re-run changes nothing when everything is in place. No --yes prints the plan (exit 2); --dry-run exits 0. Results as install: done / failed / skipped, exits 0, 2, 4 (precondition: root, wrong OS or CPU, no sudo, no Plasma, unsupported Plasma, X11, nothing to undo, session not installed), 5 (the pacman step failed), 6 (another step failed with nothing done), 7 (a step failed after earlier ones were done; later steps are skipped), 8 (config drift or lock). Never run as root: sudo is used only for the steps shown in the plan. --json is always one envelope on stdout (the config service has a quiet mode for that). A failed step says why (2026-11-17): its failed entry carries command (the argv that failed) and output (the last five lines of what it printed, at most 800 characters), and the text report prints them under the Failed: line (command: ..., | line); bxrig init does the same for its steps. systemd steps are skipped where systemd is not running (no /run/systemd/system: a container or a chroot; BXRIG_SYSTEMD_RUN_DIR replaces the path in tests): the step is listed in skipped with the reason and the command to run on a real system, the plan carries a warning, and the run is not a failure.
  • Exception to --yes: tiling on|off acts at once (a reversible user setting meant to sit behind a shortcut). status exits 0 on, 1 off, 4 not installed.

13.2 setup plasma (HyprKwin)

HyprKwin (DGBooth/HyprKwin) is a KWin script with Hyprland-style layouts and keys. It needs Plasma 6.6 or 6.8 on Wayland (6.7 warns, older or X11 exit 4). It is fetched pinned to a full commit (v1.2.0, 31abb63, same rule as PKGBUILDs) into a temp directory and installed with its own tools/install.sh as the normal user, which backs up every global shortcut first. Plasma's keys stay Plasma's unless --keys (runs tools/hyprkwin-shortcuts.py apply; --undo-keys restores). The animations effect needs one logout. setup undo plasma runs HyprKwin's uninstall. tiling on|off sets hyprkwinEnabled in kwinrc [Plugins] and asks KWin to reconfigure over D-Bus (off also unloads the script).

13.3 setup hyprland

Preconditions (exit 4): not root, pacman, CachyOS or Arch, x86_64, sudo. Steps, in order:

  1. packages: the missing ones of 17 official packages in one sudo pacman -S --needed call: hyprland, native noctalia, uwsm, hyprlock, xdg-desktop-portal-hyprland, hyprpolkitagent, qt6ct, nwg-look, hyprpicker, grim, slurp, wl-clipboard, brightnessctl, kitty, adw-gtk-theme, noto-fonts, noto-fonts-emoji. Individual packages, never the CachyOS meta-package cachyos-hypr-noctalia (it conflicts with cachyos-desktop-settings, which the KDE session may rely on). Noctalia is the native noctalia package; noctalia-shell + noctalia-qs are a different Quickshell-based variant that conflicts with quickshell (a warning, not an error, if installed). The packages added are remembered ($XDG_STATE/bxrig/setup-hyprland.json, mode 600) so setup undo hyprland runs sudo pacman -Rs on exactly those.
  2. images: the logo and wallpapers (13.6), missing ones only.
  3. starter: the Noctalia config and palette, and a first hyprland.lua (13.5).
  4. keys: the shared shortcut files (13.4).

13.4 Shortcuts, keys and setup xremap

One embedded table (Shortcuts.bx) holds the shortcuts and is rendered per target. The same keys work on Hyprland and Plasma [owner]:

PartHyprlandPlasma
Tiling and workspace keysHyprland's own keysHyprKwin (same defaults)
Cmd-style keys: Super+C, V, X, A in both styles; the rest and Super+Tab in the Mac stylexremapxremap
Logout to the login screen, Super+Shift+Qhl.bind(... "uwsm stop")kglobalshortcutsrc [ksmserver] Log Out via kwriteconfig6

Two key styles share the table (decided with the owner 2026-11-14, SHORTCUTS-DECISIONS.md): Traditional (classic Super-key tiling keys) and Mac (Cmd-style keys). Every row has a key per style; every Hyprland bind (the starter file's and the module's) is a row, so keys show, keys sheet, keys set and keys conflicts see all of them. The style, the keyboard (pc or apple) and the Alt/Win swap are in ~/.config/bxrig/keystyle.json, set with keys style (the wizard asks for the keyboard when Mac keys are on). The swap is a modmap in the xremap config (left Alt and left Win exchanged); it is active only for the Mac style on a PC keyboard. keys conflicts reports bindings that share a combo, bindings on a key xremap rewrites (only the remaps of the style that is on count) and clashes with the user's own hl.bind lines.

  • xremap, one shared YAML: Super+C/V send Ctrl+C/V, and Ctrl+Shift+C/V in terminals (a class list in the table); Super+Tab is a plain Alt+Tab remap [owner], answered on Hyprland by Noctalia's window switcher (noctalia msg window-switcher hold).
  • keys render prints a target's text (pure). keys apply writes ~/.config/xremap/config.yml, ~/.config/hypr/bxrig.lua and ~/.config/systemd/user/xremap.service through the config service (backup, journal; config list|diff|apply|restore cover them) and sets Plasma's Log Out with kwriteconfig6 when present. keys check reports clean / missing / outdated / drifted per piece (exit 0 or 1); a changed file is never overwritten without --force.
  • Since 2026-11-16 the table has 160 rows (19 xremap remaps, 17 unbound Control Center page rows, 124 bindings) and keys conflicts is clean in both styles. xremap is always installed and enabled: copy, paste, cut and select all are remaps in both styles, so the wizard no longer ties it to the Mac question. The Mac style on a PC keyboard also swaps Alt and Win in the same xremap file (modmap, left keys only). The second round (SHORTCUTS-DECISIONS.md) added private browser window, file manager here, quake console, webcam, the Hardware menu and recording with audio: section 13.54.
  • Hyprland 0.55+ (Arch has 0.57) reads hyprland.lua; hyprlang .conf is deprecated, so bxrig targets Lua only [owner]. bxrig.lua holds the Noctalia autostart and panel binds, the Alt+Tab switcher, the logout bind and the window and layer rules, taken from Noctalia's v5 Hyprland docs. bxrig never edits the user's hyprland.lua: keys check reports not-loaded and keys apply prints the require("bxrig") line to add (the starter file already has it).
  • setup xremap installs xremap-hypr-bin or xremap-kde-bin with yay (build from --build, else the running desktop), adds the udev rule for /dev/uinput and the user to the input group (both remembered in setup-xremap.json, mode 600), writes the shortcut files and enables the user service; setup undo xremap reverses only what it added. It needs one logout.

13.5 Look and starter configs

Ortus Brand Book 2025 palette (main #00FF78, second #00DBFF, accent #FFF500, dark #303446, which is also Catppuccin Frappé's base) on Frappé neutrals [owner]. Starter.bx writes, through the config service and only what is missing (a Noctalia file the user changed is kept; hyprland.lua is written only when none exists):

  • ~/.config/noctalia/config.toml and palettes/BxRig.json (NoctaliaConfig.bx): dark theme with the custom palette; a top bar with launcher, workspaces and active window on the left; the clock, four world clocks (LAX, NYC, LON, MAD, editable clock widgets with a timezone) and the media player in the centre; tray, network, bluetooth, volume, battery, notifications and control center on the right; the wallpaper folder.
  • ~/.config/hypr/hyprland.lua from templates/hyprland.lua (packed into the binary as a resource), based on Hyprland's own example: brand-gradient borders, rounded corners, blur, Hyprland's default animations, two persistent workspaces, natural scrolling off [owner, "inverse"], the programs (terminal, browser, file manager) that the shortcut table starts, and require("bxrig"). It holds no key binding: every bind is a row of the table and lives in bxrig.lua.

13.5b Shell and terminal (decided 2026-11-10)

  • Starship is the one prompt for every shell. setup shell installs the shell's packages in one sudo pacman call, writes ~/.config/starship.toml once (the official Catppuccin Powerline preset, Mocha palette, Nerd Font symbols; no question is asked, change it later with starship preset NAME -o ~/.config/starship.toml; yours afterwards), and makes the chosen shell the login shell with sudo chsh. No Oh My Zsh and no plugin manager: plugins are pacman packages.
  • zsh is the default (zsh, zsh-autosuggestions, zsh-syntax-highlighting, zsh-completions), then fish and bash. All get starship, fzf and zoxide, wired into the shell. zsh and bash load a managed ~/.config/bxrig/shell.<shell> from one marked block appended to ~/.zshrc / ~/.bashrc (the rest of the file is never touched; the block is added once); fish gets ~/.config/fish/conf.d/bxrig.fish (fish loads conf.d itself). The managed init is rewritten while unchanged and kept once you edit it.
  • Terminals: ghostty (default), kitty, alacritty, foot, konsole. The default is the Super+Enter terminal in the starter hyprland.lua and the one setup hyprland installs (no longer Kitty); extras install with setup terminal --also=. Each terminal with a config file gets a starter written once that sets the Nerd Font (JetBrainsMono Nerd Font), so Starship's symbols render in any of them. The xremap terminal list already covers all five.
  • Wizard keys: shell (default zsh), terminal (default ghostty), terminals_extra (default none).

13.6 Brand assets

assets/ holds the sources (build.py, composed from the official BoxLang icon in assets/brand/, copied unchanged from Ortus-Solutions/ortus-artwork) and the rendered icon, logo and four wallpapers (box, grid, aurora, minimal). bootstrap/gen-assets.sh embeds them in AssetData.bx; assets install writes the wallpapers to ~/Pictures/BxRig, the logo to ~/.local/share/bxrig and the app icon (icons/N.png for N = 16, 24, 32, 48, 64, 128, 256 and icons/bxrig.svg) into the user's hicolor icon theme (~/.local/share/icons/hicolor/NxN/apps/bxrig.png, scalable/apps/bxrig.svg), never overwriting a file the user changed. They are written as base64 text and decoded with base64 -d because MatchBox's fileWrite turns a binary value into a string (upstream gap).

13.7 session

session show lists the installed sessions, the one the login screen preselects, and any automatic login. session set hyprland|plasma makes that session the one SDDM preselects by rewriting Session= under [Last] in /var/lib/sddm/state.conf with sudo (a backup state.conf.bxrig.bak is kept; the other lines stay). Hyprland prefers hyprland-uwsm.desktop. It never turns on automatic login (a warning if one is set, since it wins). There is no ask value: SDDM always remembers the last session. Log out with Super+Shift+Q to see the change.

13.9 runner: the launcher abstraction (port of the legacy bxrig-runner)

Design (owner, 2026-11-10): BxRig is built on an abstraction so runners can be switched. The rest of BxRig asks for two things and never names a launcher:

Runner.launch()                      open or toggle the launcher
Runner.select( prompt, entries )     show [ { label, icon } ] in a menu, return the chosen position (0 = cancelled)

Super+Alt+Space (Hyprland, both key styles) is bound once, in the managed bxrig.lua, to bxrig runner launch (falling back to noctalia msg panel-toggle launcher when the chosen launcher cannot run), so runner set changes what it opens without ever editing a keybinding. Super+Space opens the BxRig menu (bxrig menu, 13.16). Which launcher answers is a setting, recorded in ~/.config/bxrig/runner.json (written atomically); the launcher and the menu provider are chosen separately. The runner never changes a keybinding or a desktop file (doctor ends with Shortcut ownership: unchanged). set and menu-set are user settings that act at once (no --yes), like tiling.

Providers are data in RunnerProviders (one descriptor each: id, title, package, launch argv, and menu: dmenu argv with {prompt}, icons, returns). Adding a launcher is adding one descriptor.

ProviderLaunchMenu (dmenu mode)IconsChoice comes back asPackage
noctalia (default on Hyprland)noctalia msg panel-toggle launchernone with Noctalia
walkerwalkerwalker --dmenunolabelWalker
rofi (default menu)rofi -show drunrofi -dmenu -i -show-icons -format i -pyesindexrofi
fuzzelfuzzelfuzzel --dmenu --index --promptyesindexfuzzel
wofiwofi --show drunwofi --dmenu --insensitive --promptnolabelwofi
vicinaevicinae togglevicinae dmenu --promptnolabelvicinae-bin (AUR)
krunnerkrunnernone with KDE
systemnone (the desktop owns it)none
customyour custom_commandnone

select writes the labels (one per line, newlines inside a label become spaces) to a temporary file and runs the provider's command with it on stdin through sh -c 'exec "$@" < "$f"'. Providers that understand Rofi's extended dmenu protocol (label NUL icon US name) get icons; the others get plain labels. A non-zero exit, an empty answer, an unknown label or an index out of range is a cancel, never a wrong choice.

bxrig runner list | show | doctor | launch [--json]
bxrig runner set P | menu-set P
bxrig runner icon-theme NAME|auto                                          the icon theme Rofi and Fuzzel draw icons from (see below)
bxrig runner launcher-command P JSON_ARGV | menu-command P JSON_ARGV     JSON argument arrays, {prompt} allowed
bxrig runner select JSON_ENTRIES [--prompt=TEXT] [--json]                prints the 0-based index; exit 1 cancelled, 4 menu cannot run

Commands are JSON argument arrays, never shell strings (a string, an empty array or an empty part exits 4). list marks the current choice with * (--json adds each provider's title, package, icon support and answer format). doctor shows the commands and whether each executable is on PATH. launch starts the launcher detached (exit 4 for system or a missing program). The wizard offers Noctalia, Walker, Rofi, Fuzzel and Wofi; Vicinae, KRunner and custom work from the command line. hyprrunner was dropped (no package found, 2026-11-10). Fuzzel and Wofi flags are from their man pages.

Icon theme (IconTheme.bx, runner icon-theme NAME|auto). Rofi and Fuzzel draw the runner's icons from one icon theme, chosen in this order, each only when that theme folder exists (~/.local/share/icons, ~/.icons, /usr/share/icons): BXRIG_ICON_THEME, icon_theme in runner.json (what runner icon-theme NAME writes; auto removes it; an uninstalled name exits 4), the GTK setting (gtk-3.0 and gtk-4.0 settings.ini, then gsettings org.gnome.desktop.interface icon-theme), then the first installed of Papirus, Adwaita, elementary-xfce, breeze, else hicolor. theme set writes it into rofi.rasi (configuration { icon-theme: "NAME"; }, which Rofi 2 honours inside an imported theme) and fuzzel.ini ([main] icon-theme=NAME), so apply a changed choice with bxrig theme set. Each section's icon is resolved against the theme at menu start with one find: the wanted name, its -symbolic twin, a few alternatives (IconTheme.alternatives), then folder, application-x-executable and bxrig (the app icon in the user's hicolor), so a theme that lacks a name never leaves a gap; when nothing resolves the row is shown without an icon. Tests: tests/icon_theme_test.bxs, theme-test.sh, runner-test.sh.

13.10 db: local databases and search engines as containers (port of the legacy bxrig-db and bxrig-vector)

bxrig db engines | list [--json]
bxrig db start ENGINE [--name N] [--port P] [--password-file FILE | --ask-password] [--yes] [--dry-run]    create, or start a stopped one; never replaces a container
bxrig db stop|status|logs ENGINE [--name N]
bxrig db remove ENGINE [--name N] [--keep-data] --yes              removes the container AND its data (volume and password file); --keep-data keeps the data
bxrig db info ENGINE [--name N] [--show-password]                  where it listens and how to connect (password masked by default)
bxrig db engine [podman|docker]                                    which engine runs them (podman by default, saved in ~/.config/bxrig/db.json)
bxrig db menu                                                      the control center, on the runner's menu provider (needs a terminal program)

Exit codes: 0 done, 2 usage or no --yes (the plan is printed; --dry-run exits 0), 4 precondition (no container engine, unknown or unsupported engine, bad name or port, vm.max_map_count too low), 6 the container command failed. --json gives the standard envelope.

Bar plugin data. db list --json rows are {container, status (the engine's text), state (running, paused, created, exited), image, engine, name, port}; db info ENGINE --name N --show-password --json returns data.url, the connection string the Developer bar plugin copies (vm list --json has state, ports, url per VM and vm start|stop NAME run them).

Rules. Services listen on 127.0.0.1 only. A container that exists is never replaced (a stopped one is started; a running one is left alone). Containers are named bxrig-db-<engine>-<name> (name defaults to default; letters, digits and hyphens) and labelled io.bxrig.database=true. Data lives in a named volume with the container's name, not a host folder (db remove deletes it together with the container and the password files, so the next start is a clean database; --keep-data keeps them, and starting the same name again then reuses the volume and its password): rootless containers cannot write to a bind-mounted folder as the image's own user (OpenSearch, Elasticsearch and Meilisearch run as non-root). Choosing the password: by default one is generated. --password-file FILE uses the first line of a file you made; --ask-password asks twice at the terminal without echo (/dev/tty, so it needs a terminal; the plan never prompts). A password is never a command-line value, so it cannot land in shell history or the process list. It must be 8 to 128 characters with no whitespace (OpenSearch also needs upper and lower case, a digit and a special character). It applies only when the container is created (the image sets it on first start of the data volume): a second start never changes it, an existing container refuses one, and a kept data volume (from remove --keep-data) keeps the password it was made with (a different choice is refused). Engines without a password (Redis, Chroma, Qdrant, Weaviate) and Couchbase (set in its web console) refuse the options. The user name is fixed per engine (postgres, root, admin, elastic). Generated passwords (24 random bytes as hex) go in ~/.local/share/bxrig/databases/<container>/ (password and database.env, mode 600, plus meta.json with the port) and reach the container through --env-file, never on a command line. Nothing changes system settings: when vm.max_map_count is too low start stops with the sudo sysctl -w line to run. Images are pinned and were checked on Docker Hub on 2026-11-10 (Elasticsearch's from Elastic's docs).

EngineImageHost portPasswordNotes
postgrespostgres:175432generated (postgres)
mysqlmysql:8.43306generated (root)
mariadbmariadb:11.83306generated (root)
redisredis:7.46379none (localhost only)--appendonly yes
mongodbmongo:8.027017generated (root)
couchbasecouchbase:community-8.0.28091none: set in the web consoleAfter db start, open http://127.0.0.1:8091, choose Setup New Cluster and set the administrator name and password there. Ports 8091-8096, 11210 and 11211 are fixed, so --port is refused and only one instance can run.
pgvectorpgvector/pgvector:pg175432generated (postgres)run CREATE EXTENSION vector;
chromachromadb/chroma:1.5.98000nonedata in /data (1.x images)
qdrantqdrant/qdrant:v1.20.06333none
weaviatesemitechnologies/weaviate:1.39.158080none (anonymous access)local only; never publish the port
meilisearchgetmeili/meilisearch:v1.567700generated master keyruns with MEILI_ENV=production, which requires the key
opensearchopensearchproject/opensearch:3.9.09200generated (admin)HTTPS, self-signed (use curl -k); single node; the password gets a -Aa1! suffix to meet OpenSearch's policy; needs vm.max_map_count 262144
elasticsearchdocker.elastic.co/elasticsearch/elasticsearch:9.5.69200generated (elastic)HTTPS, self-signed; single node; -Xms1g -Xmx1g; needs vm.max_map_count 262144
milvusnone not supported: it needs several services (etcd, object storage); db start milvus exits 4

Docker works through the same commands (db engine docker): only run, start, stop, rm, logs, ps, container inspect and volume rm are used, which both engines share.

Verified and not. Tested end to end against a fake Podman/Docker (arguments, files, modes, exit codes, the menu), never against real containers. Not confirmed from the docs fetched: that the Elasticsearch image reads ELASTIC_PASSWORD (the page showed a password printed at first start instead) and its data path /usr/share/elasticsearch/data; OpenSearch's data path; Couchbase's /opt/couchbase/var. A real db start of each engine on Podman is part of the acceptance run on a real machine.

13.11 dotfiles: your own dotfiles repository (decided with the owner 2026-11-11)

bxrig dotfiles plan REPO [--method=chezmoi|yadm|stow|links] [--json]    clones the repo into BxRig's data folder; changes nothing in your home
bxrig dotfiles apply REPO [--method=M] [--overwrite] [--yes] [--dry-run] [--json]
bxrig dotfiles status | undo [--yes] [--dry-run] [--json]

REPO is a git URL or a local path. The method is detected (--method overrides): chezmoi (.chezmoiroot, .chezmoiignore, or dot_ / .chezmoi* names), then yadm (.config/yadm/, or ## alternate names), then stow (.stowrc, .stow-local-ignore, or only top-level package folders that hold dotfiles), else links.

Your dotfiles win, but nothing is replaced unasked. The plan splits the repo's files into new, already in place (a link to the repo, or an identical file) and conflicts (files you already have that would be replaced; chezmoi templates always count). apply --yes needs your approval of the conflicts: --overwrite, or a y at the prompt (read from /dev/tty, so a headless run without --overwrite exits 2 and changes nothing). Every replaced file is first moved into ~/.local/state/bxrig/backups/dotfiles/<time>/; if a step then fails (exit 6) the originals are put back. status shows what was applied; undo --yes removes the links BxRig made (stow -D for stow) and restores the originals (for chezmoi and yadm only the originals come back: the files those tools created stay, remove them with the tool).

MethodFiles go to your home byApplied with
linksone symlink per file (folders are never replaced by a link)ln -s
stoweach top-level folder is a packagestow -d CLONE -t HOME -R PACKAGES
chezmoidot_, private_, executable_, ... prefixes and .tmpl are mapped to the plain path for the conflict listchezmoi apply --source CLONE --force
yadm## alternate suffixes are mapped to the plain nameyadm clone -f --no-bootstrap REPO (yadm pull when it is already set up)

Repo-only files (.git, README*, LICENSE*, .gitignore, .stow-local-ignore...) are never linked. A missing tool (chezmoi, yadm, stow; Arch extra) is installed with sudo pacman -S --needed as the first step of apply (the plan says so). One repository can be set up at a time: a second one is refused (exit 4) until undo. Exits: 0 done, 2 no --yes or conflicts not approved, 4 precondition (cannot clone, unknown method, nothing to apply, tool not installable), 6 a step failed. The wizard's Import page asks for the repository (empty skips); init runs dotfiles apply REPO last, so your files win over the starter configs, and the conflict question appears at the terminal.

Tested against real git repositories and fake tools (stow, chezmoi, yadm, pacman); the real tools have not been run. Private repositories and credentials are git's business (SSH keys or a credential helper must already work).

13.12 Apps: Basic or Customize, and your defaults (decided with the owner 2026-11-11)

The wizard's Apps page asks how you want your apps: Basic (the default: an opinionated, recommended set) or Customize.

  • Basic runs bxrig install --shell=hyprland|plasma|all for the desktop(s) you chose: the catalog's default tier (about 87 apps), desktop-specific ones only for their desktop. Nothing is asked.
  • Customize shows one extra page per catalog group (11, built from the catalog by AppPages, after the Apps page): a multi-choice list per category with the default apps ticked, each option showing its description and the macOS equivalent. Only what is ticked is installed (bxrig install ID..., one command), minus apps that belong to a desktop you did not choose. Categories the wizard asks about itself are not repeated: AI "Coding orchestration", Desktop "Launchers", Terminal "Terminal" and Development "Shell". Answer keys: apps_<group>_<category> (a list of app ids). Web apps are one of the groups, like any other.
  • Default browser (default_browser, asked in both modes, default Brave): installed if needed, then set with bxrig default browser ID.
  • Default terminal: the terminal you picked is set with bxrig default terminal ID.
  • Default viewers: no question. With Basic (or when ticked in Customize) the plan adds two optional steps after the install: xdg-mime default org.kde.gwenview.desktop image/png ... (png, jpeg, gif, webp, bmp, tiff, svg, avif, heif, jxl) and xdg-mime default org.kde.okular.desktop application/pdf. They are plain argv steps (no bxrig default subcommand, so the CLI is unchanged), they are not undone, and a failure never stops the plan.
bxrig default show | browser ID | terminal ID [--yes] [--dry-run] [--json]

browser runs xdg-settings set default-web-browser <app>.desktop (needs xdg-utils and the app installed). Desktop entries: firefox firefox.desktop and chromium chromium.desktop were read from the Arch packages; brave brave-browser.desktop, google-chrome google-chrome.desktop and edge microsoft-edge.desktop are the vendors' usual names (not verified here); other browsers exit 4 (set those in your system settings). terminal writes ~/.config/xdg-terminals.list (the xdg-terminal-exec list; kept if you edited it) with the terminal's desktop entry (ghostty com.mitchellh.ghostty.desktop, kitty kitty.desktop, alacritty Alacritty.desktop, foot foot.desktop, konsole org.kde.konsole.desktop, all from the Arch packages) and, when kwriteconfig6 is present, KDE's own setting (kdeglobals [General] TerminalApplication and TerminalService; the key names are not verified on a real KDE). Exit codes: 0 done, 2 no --yes, 4 precondition (not installed, unknown, no xdg-settings), 6 the command failed.

Wizard pages (and questions) may carry when; a hidden page is skipped by Next and Back, left out of the sidebar, the step count and the review, and its answers are not in the result.

13.8 Tests and what is verified

  • Pure SetupPlan, Shortcuts, NoctaliaConfig classes with script tests; native tests with fake pacman, yay, git, qdbus6, kwriteconfig6, sudo, systemctl (plan output, --yes gating, root refusal, partial failure, re-run, undo, drift, one clean --json envelope); the starter TOML and JSON are parsed.
  • The real Arch container (tests/arch/suite.sh) runs the xremap plan, checks the AUR package names, runs the whole setup hyprland, checks the written files, byte-identical wallpapers, keys check, and has Hyprland verify the starter config.
  • Not verifiable in CI: HyprKwin's installer (needs a running KWin), xremap's per-app rules on both builds, Noctalia accepting every config key, and the exact Hyprland bind strings on a running session. These are covered by the owner's acceptance run on a real CachyOS KDE machine.

13.13 Secrets: one way to store and load API keys (decided with the owner 2026-11-11)

bxrig secrets is the single way to keep API keys and tokens. Every machine uses the same commands; export/import (later) moves them between machines.

CommandDoes
secrets statusbackend in use, whether a keyring is available, how many secrets are stored
secrets set NAME [--from-file=F]stores a value: typed hidden at the terminal, or read from a file. Never a command-line value. Replaces an existing one
secrets listnames only, with the coding agent that reads each known key
secrets get NAME [--show]says whether it is set and its length; --show prints the value
secrets unset NAME --yesdeletes a value (plan without --yes, exit 2)
secrets run [NAMES...] [--strict] -- CMD...runs CMD with those secrets in its own environment only; exit code is CMD's. A name that is not set is skipped, --strict exits 4
secrets env [NAMES...]prints export NAME='value' lines for eval (all stored names when none given)
  • Names are environment variable names: capital letters, digits, underscores (ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY).
  • Backend: the desktop keyring through secret-tool (libsecret) when secret-tool exists and org.freedesktop.secrets is on the user D-Bus (running or activatable); otherwise private files (~/.local/share/bxrig/secrets/NAME, mode 600 in a mode 700 folder). The choice is saved in ~/.config/bxrig/secrets.json and shown by status. Keyring entries carry the attributes service=bxrig name=NAME.
  • Values are passed to secret-tool and to programs through standard input and the process environment, never through a command line, a temp file, a log, or answers.json.
  • set is interactive on purpose and needs no --yes.
  • Exit codes: 0 done, 2 usage or plan without --yes, 4 precondition (bad name, secret not set, no value), 6 the store failed. Loading into shells (default is per command, global is opt-in per key):
  • secrets apply [--yes] writes ~/.config/bxrig/secrets.sh (bash, zsh) and secrets.fish. They hold no values: one wrapper per agent command whose key is stored (claude() { bxrig secrets run ANTHROPIC_API_KEY -- command claude "$@"; }). secrets set runs it automatically. The shell init templates source these files.
  • secrets global on NAME --yes | off NAME | show: exports a key to every new shell. on prints a warning first (every program, including AI agents and what they run, can read it). The values go to a session cache, $XDG_RUNTIME_DIR/bxrig-secrets.env and .fish (mode 600, tmpfs, wiped at logout), never to a config file. The loader files call secrets unlock once per login when the cache is missing (the keyring's single unlock prompt); secrets lock removes the cache. A globally exported key gets no wrapper. Moving machines and the keyring:
  • secrets export FILE [--plain] [--force] --yes: all stored secrets as export NAME='value' lines, encrypted with a passphrase by age -p (age asks on the terminal; the file is mode 600). --plain writes a readable .env instead (mode 600; the plan says so). An existing file is kept unless --force.
  • secrets import FILE [--overwrite] --yes: reads an age file or a .env file; the plan lists each name as new, same or differs. A name that already has a different value is kept unless --overwrite. New machine: install.sh, init --answers answers.json, secrets import, dotfiles apply.
  • secrets setup [--keyring=kwallet|gnome-keyring|none] [--yes] [--dry-run]: checks for a Secret Service on the user D-Bus (running or activatable). Installs libsecret (secret-tool, repo core) and age (repo extra) when missing; when no keyring exists, also kwallet on Plasma or gnome-keyring elsewhere, or the one named. --keyring=none installs no keyring and saves the file backend. The plan names what it installs. Package names and secret-tool in libsecret were checked on archlinux.org on 2026-11-11. Secret types and providers (decided with the owner 2026-11-11):
  • Every secret has a type: ai (a key for an AI provider) or other (a GitHub token and so on). A name in the provider registry is ai automatically; any other name is other unless secrets set NAME --type=ai [--provider=ID] says otherwise. The type and provider are kept in secrets.json (meta, names only, never values). secrets list [--type=ai|other] filters; secrets run --type=ai -- CMD loads every AI key and no other secret.
  • The provider registry (AiProviders) maps providers to environment variables: anthropic ANTHROPIC_API_KEY, openai OPENAI_API_KEY, google GEMINI_API_KEY, openrouter OPENROUTER_API_KEY, novita NOVITA_API_KEY, opencode OPENCODE_API_KEY, groq, mistral, deepseek, xai, together (GROQ_API_KEY, MISTRAL_API_KEY, DEEPSEEK_API_KEY, XAI_API_KEY, TOGETHER_API_KEY). Names are from models.dev (the registry OpenCode uses), checked 2026-11-11.
  • Each agent declares the providers it accepts (AiAgents): Claude Code anthropic, Codex openai, Gemini CLI google, OpenCode all of the above. An agent is only ever given keys from its own list. Its wrapper carries the stored ones among them (opencode() { bxrig secrets run ANTHROPIC_API_KEY OPENAI_API_KEY -- command opencode "$@"; }); nothing else is loaded.
  • Tests: tests/secrets-test.sh (fake secret-tool and busctl). The registry of agent key names is from the vendors' documentation and the user can store any other valid name.

13.14 AI agents (decided with the owner 2026-11-11)

bxrig ai knows four coding agents (AiAgents): claude-code (command claude), codex-cli (codex), gemini-cli (gemini), opencode-cli (opencode), each with the providers whose keys it accepts (see 13.13). Command names were checked in the Arch packages (openai-codex ships /usr/bin/codex, gemini-cli ships /usr/bin/gemini; claude-code comes from the CachyOS repo). The key names are from the vendors' documentation.

CommandDoes
ai listeach agent: installed, key stored, default
ai default [ID] [--yes]shows the default, or sets it (the agent must be installed; plan without --yes, exit 2). Saved in ~/.config/bxrig/ai.json
ai launch [ID] [--dry-run]opens the agent (the default when no ID) in your default terminal as TERMINAL [-e] bxrig secrets run KEY -- COMMAND, detached. The terminal is the first line of ~/.config/xdg-terminals.list if it names a terminal BxRig knows and it is installed, else the first installed one. ghostty, alacritty and konsole get -e; kitty and foot get the command directly (foot and konsole flags are from memory, not verified here)
ai shell [toggle\|status] [--backend=hyprland\|yakuake] [--dry-run]the pull-down AI shell: one shortcut shows and hides a terminal running your default agent (your shell when none is set); it keeps its session while hidden

Pull-down AI shell. The backend follows the desktop: a Hyprland session (HYPRLAND_INSTANCE_SIGNATURE) uses a special workspace, KDE Plasma uses Yakuake; --backend overrides. Exit 4 when neither applies, when no terminal can carry a window class, or when Yakuake is missing.

  • Hyprland: the first call starts a terminal with the window class com.bxrig.ai (ghostty --class=, kitty and alacritty --class, foot --app-id; konsole cannot) running bxrig secrets run KEYS -- AGENT, then sizes it to 100% x 45% and moves it to the top with hyprctl dispatch resizewindowpixel / movewindowpixel (best effort). The Hyprland module (keys apply) holds hl.window_rule({ name = "bxrig-ai", match = { class = "^com.bxrig.ai$" }, workspace = "special:ai", float = true }) and the shortcut Super+\`` runningbxrig ai shell. Later calls toggle the workspace:hyprctl dispatch togglespecialworkspace ai, and if that fails the Lua formhl.dsp.workspace.toggle_special("ai"). Window class is the ghostty config optionclass` (GTK builds), and it must look like a GTK application id, hence the dotted name.
  • Plasma (Yakuake): the first call starts Yakuake, waits for its D-Bus name, adds a tab (org.kde.yakuake.addSession on /yakuake/sessions), types the agent command (runCommand) and shows the window (toggleWindowState on /yakuake/window); later calls only toggle. The tab is remembered in $XDG_RUNTIME_DIR/bxrig-ai-shell. init installs yakuake (official extra) when Plasma and an agent are chosen. The Plasma shortcut is not written by BxRig: bind bxrig ai shell in System Settings, Shortcuts (Yakuake also has its own open/retract key).
  • Not verified on a real desktop: the Hyprland window rule and dispatchers in Lua mode, the percentage resize and move, the special-workspace slide direction, and Yakuake's runCommand (its changelog mentions a security prompt). They are on the acceptance checklist.
  • Tests: tests/ai-shell-test.sh (fake hyprctl, dbus-send, yakuake and terminals).

Agent sessions (tmux). ai session start [ID] [--name=N] [--dir=PATH] [--dry-run] starts a detached tmux session bxrig-AGENT[-N] running the agent (the default when no ID) in PATH (the current folder by default) through secrets run, so it keeps working after you close the terminal. A session that already exists is reported, not replaced. ai session list shows only bxrig- sessions. ai session attach NAME joins one (NAME is the full name or what follows bxrig-; needs a terminal; detach with the tmux prefix then d). ai session stop NAME --yes ends one (plan without --yes, exit 2). Names are letters, digits, -, _ (up to 40). Exit 4: tmux or the agent missing, bad name, no such session; 6: a tmux command failed. init installs tmux when an agent is chosen. Tests: tests/ai-session-test.sh.

Local AI (llama.cpp). AiLocal.bx with AiHardware.bx (pure readers of /proc/cpuinfo, /proc/meminfo, lspci -mm, nvidia-smi), AiCatalog.bx (catalog/ai-models.json, schema 1; BXRIG_AI_CATALOG names another file) and AiProvider.bx (the Control Center page ai).

  • ai hardware: CPU, cores, instruction sets, RAM, graphics, free disk. Budget: a dedicated card's memory minus 1024 MB, else half the RAM; class tiny (<6000 MB), medium (<=14000), high. Backends: cpu; vulkan with any graphics; cuda with NVIDIA; rocm with a dedicated AMD card (>=4096 MB VRAM in mem_info_vram_total).
  • ai models recommend [--all]: up to three verified chat models that fit (need = max(mem_mb, size_mb) + 512): balanced (best score with reference reply <= 3 s; the default), fastest (score >= 16, quickest), capable (best score, larger on a tie). --all adds every model that fits, untested ones marked. Plus the default embedding model.
  • ai engine [status|install|update]: ~/.local/bin/llama (official, llama.app installer, run with sh after --yes), else llama or llama-server on the PATH. --source=aur installs llama.cpp-vulkan-bin (Arch only). update runs llama update (official installs only; a package updates with the system).
  • ai models pull ID... [--yes] [--no-test]: batches of three curl downloads in the background (-fL --retry 5 --retry-all-errors -C - to FILE.part), progress every 2 s, SHA-256 against the catalog, then FILE.part becomes FILE. A mismatch keeps the .part and fails (exit 6). Disk check before (download + 1 GB). After: ai.json and the preset are written, a running server restarts, each new model gets the answer check.
  • ai models use ID (chat models only; the old one is unloaded with POST /models/unload), test [ID] (chat: one question, max_tokens 48, thinking off, records reply_s and tps from timings.predicted_per_second; embeddings: one vector, records dimensions), tune [ID] [--yes] (llama bench -m FILE -t HALF,ALL -ub 256,512 -fa 0,1 -p 256 -n 32 -r 1 -o json; the best setting maximises gen t/s + prompt t/s / 20; written as threads, ubatch-size, flash-attn in the preset), remove ID [--yes].
  • ai ask TEXT [--model=ID]: one question to the active (or named) model: { model, answer, reply_s, tps }.
  • ai serve [status|start|stop|restart], ai serve --listen=127.0.0.1|0.0.0.0 [--port=N] [--yes]: bxrig-ai.service (user) runs llama serve --models-preset ~/.config/bxrig/ai-models.ini --models-max 2|3 --host H --port P --no-webui (+ --api-key-file ~/.config/bxrig/ai-api-key when not 127.0.0.1; the key is made on the first switch, mode 600 before it is written, shown once). Default 127.0.0.1:8089. APIs: OpenAI /v1, Anthropic /v1/messages, embeddings /v1/embeddings (verified on llama.cpp b12627).
  • Preset (INI, router mode): one [ID] per installed model with model = PATH; chat models ctx-size = 8192 and the tuned keys; embedding models embeddings = true.
  • ai setup [--models=ID,ID|--picks=all] [--tune] [--yes]: engine, missing models (the balanced pick, or all picks, plus the embedding model), serve start, wait for /health (90 s), the answer check, the tune when asked. ai status: all of it for the bar and the page.
  • Wizard: ai_local_setup (now, later), ai_local_picks (balanced, all), ai_local_tune (confirm); init runs one optional ai setup --yes [--picks=all] [--tune] step. ai_local still installs the local AI apps ticked (Ollama, LM Studio, Jan, KoboldCpp, GPT4All).
  • Bar: the Agents panel's Local tab (templates/noctalia-plugins/agents/local.luau): ai status, ai serve start|stop, ai models use, ai ask, and tui ai in a terminal.
  • ai discover [QUERY] [--fits] [--tools] [--vision] [--embeddings] [--limit=N] (AiHub.bx): the staff picks (the catalog's picks for this machine), then Hugging Face: GET /api/models?filter=gguf&sort=downloads&direction=-1&full=true&limit=N[&search=Q], language models only (pipeline text-generation, image-text-to-text, feature-extraction, sentence-similarity, text2text-generation or none), gated repositories left out; per repository GET /api/models/REPO/tree/main?recursive=true for the .gguf files (no mmproj, no -0000N-of-0000M parts) with size and lfs.oid (the SHA-256). The file: the first of Q4_K_M, Q4_K_S, IQ4_XS, IQ4_NL, Q4_0, Q5_K_M, Q5_K_S, Q6_K, Q8_0. --tools asks GET /api/models/REPO and keeps repositories whose chat template mentions tools. BXRIG_HF_URL replaces https://huggingface.co for the API (tests).
  • ai models pull hf:OWNER/REPO[/PATH.gguf]: resolved as above (no file without a 64-character SHA-256 is downloaded). Id: the catalog's id when the catalog has that repository, else the repository name in lower case without -GGUF (owner first when that clashes with a catalog id). The entry is kept in ai.json as models.ID.meta (source: "hf", verified: false).
  • Queue: every pull writes ~/.local/state/bxrig/ai-downloads/ID.json (queued, downloading, checking, done, failed, cancelled); --background runs the same pull detached (setsid, output in pull.log there). ai downloads reads the records with the live share from the .part size; cancel ID marks it, stops its curl (pkill -f on the .part path) and deletes the part; clear forgets finished records.
  • ai bench [ID] (AiBench.bx, catalog/ai-bench.json): 20 cases (12 basic, 8 harder) with 10 tools, the system prompt, temperature 0, thinking off, max_tokens 400. Pass rules: one (the first call has the name and every argument matches its case-insensitive pattern), both (each expected call appears), none (no call). Kept as models.ID.bench { score, of, basic, hard, median_s, at, engine }. Checked on llama.cpp b12627: Qwen3.5 0.8B scores 17/20, as in the catalog.
  • ai link [opencode|crush [--off] [--default] [--yes] [--dry-run]] (AiAgentLink.bx): OpenCode ~/.config/opencode/opencode.json gets providers.bxrig = { name, package: "@opencode/ai/providers/openai-compatible", settings.baseURL: BASE/v1, models: { ID: {} } } (chat models) and, with --default, model: "bxrig/ACTIVE"; a file that is not plain JSON is refused. Crush ~/.config/crush/crushrc gets a marked block provider add bxrig --name "BxRig local AI" --type llamacpp --base-url BASE. --off removes only those (and a bxrig/ default). The old file is kept as .bxrig-backup. Refused (exit 4) while the server listens on 0.0.0.0: neither agent's docs say how a custom provider sends a key. Formats from opencode.ai/docs/providers and the Crush README (read 2026-11-23); not run against the agents here.
  • Control Center: ai-discover (live search, refresh every 2 s; Enter ai models pull SPEC --background, c cancel, x clear, h Hugging Face) and ai-agents (ai list, ai link, ai session list; Enter session, d default, l local server). The AI page: b bench. Bar: the Local tab lists active downloads.
  • ai text summarize|rewrite|fix|explain|translate|reply [--lang=L] [--from=selection|clipboard] [--text=T] [--to=clipboard|notify|stdout] [--model=ID] and ai text menu (AiText.bx): the text from --text, else wl-paste --primary --no-newline --type text, else wl-paste --no-newline --type text (--from limits it); at most 24,000 characters. The action's instruction plus "Reply with the result only" as the system message, the text as the user's; temperature 0.3. --to=clipboard (default) copies with wl-copy and notifies; notify only notifies; stdout only prints. menu picks the action with the runner's menu (Runner.select). Shortcut ai-text: Super+Alt+E (ai text menu).
  • Tests: tests/ai_local_test.bxs (pure), tests/ai-local-test.sh (fake curl, llama and systemctl; a small catalog; a fake Hugging Face API; keyword embeddings; fake wl-paste, wl-copy and notify-send). Checked for real against llama.cpp b12627 (the official container image's llama): downloads from Hugging Face, the router with the written preset, test, use, tune, ask and the Anthropic endpoint.

Exit codes: 0 done, 2 usage or plan without --yes, 4 precondition (unknown or missing agent, no default, no terminal), 6 failed. Tests: tests/ai-test.sh, tests/init_plan_test.bxs, tests/init-test.sh.

Local model apps: AUR names were checked on 2026-11-11 (lmstudio-bin, jan-bin, koboldcpp, gpt4all-chat); Ollama is in extra. Open WebUI is left out: its AUR package is flagged out of date. BxRig's own local AI is llama.cpp (above).

Init rules for this page: a default agent that was not ticked is installed too; secrets setup runs whenever an agent is chosen (it installs a keyring only if none exists); the key steps are optional, so one that cannot run (no terminal, you press Enter to skip) is reported as skipped with the command to run later and the plan goes on.

13.15 SSH key and Plasma keyboard layouts (decided with the owner 2026-11-12)

  • ssh key [--email=ADDRESS] [--yes] [--dry-run] creates ~/.ssh/id_ed25519 with ssh-keygen -t ed25519 [-C ADDRESS] (~/.ssh is made mode 700). An existing key is never replaced: it is reported with its public half and exit 0. ssh-keygen asks for the passphrase itself on the terminal (empty means none), so it needs a terminal; the public key is printed for GitHub. Exit 2 plan without --yes, 4 no ssh-keygen, 6 ssh-keygen failed. The wizard's ssh_key answer runs it as an optional init step with the git email as the comment.
  • setup keyboard --layouts=us-intl,es [--yes] [--dry-run] writes the layouts of a Plasma session with kwriteconfig6 --file kxkbrc --group Layout (Use=true, LayoutList=us,es, VariantList=intl,, Options=grp:alt_shift_toggle when there are two or more, else empty). Layout names are the wizard's (StarterOptions.keyboards). Plasma reads the file at login. The key names are from KDE's kxkbrc; not run on a real Plasma here. Hyprland takes the same answer through setup hyprland --layouts. init runs it when Plasma is chosen, so layouts is no longer pending there. Locale (LANG) is a system setting and is not changed. Tests: tests/ssh-keyboard-test.sh.

13.16 Control center menu (decided with the owner 2026-11-12)

bxrig menu shows the BxRig control center with the menu provider you chose (runner menu-set). menu items [--json] prints the same tree as data.

  • AI: open the default agent and the pull-down AI shell (both start detached, no window); agent session start and list, local models list and running, API keys list (these open in a terminal window and wait for Enter).
  • Databases: opens the existing db menu.
  • Web apps: Create web app asks for a name and a URL typed into the menu, then runs web add NAME URL --yes and shows the result; List web apps; Remove a web app (pick, confirm, web rm NAME --yes). Typed text is supported by Rofi (rofi -dmenu -l 0 with empty input prints what you type); for Walker, Fuzzel, Wofi and Vicinae, where typed text is not verified, Create opens a terminal that runs web add with no arguments, which asks for the name, URL and browser itself (the typing is the consent). web add with no arguments does the same on its own. Menu order is now AI, Databases, All apps, Web apps, Settings.
  • Settings: defaults, shortcuts, launcher check, setup status, dotfiles status (read-only views in a terminal).
  • Every entry is started without --yes, so nothing is changed by the menu itself; the commands keep their own plan/--yes rules. Back and Exit are the last entry of each level; cancelling the provider (empty answer) leaves the menu with exit 0.
  • Terminals for run entries: the first installed of ghostty, kitty, foot, alacritty, konsole (-e for ghostty, alacritty, konsole). Exit 4 when there is no menu program, or no terminal for a run entry.
  • Hyprland binds it to Super+Space in the shortcut table; Super+Alt+Space runs the launcher you chose (runner launch). menu open ROUTE opens one section (system, capture, toggle, hardware, agent, shortcuts, or a path such as trigger > capture; no ROUTE lists them); Super+Escape, XF86PowerOff, Super+Ctrl+C, Super+Ctrl+O, Super+Ctrl+H and Super+Shift+Ctrl+A use it. The top level is Apps, Setup wizard, Install, Remove, Appearance, Trigger, Shortcuts, Hardware, Setup, Update, Develop, Agent, Learn, About, System, Control Center. Tests: tests/menu-test.sh (fake Rofi and terminal).

13.17 Podman helpers, docker compatibility and the LazyVim starter (decided with the owner 2026-11-12)

  • containers doctor [--json] reports six checks, each with the command that fixes it: Podman installed, rootless (podman info --format '{{.Host.Security.Rootless}}'), subuid and subgid ranges for the user (/etc, overridable with BXRIG_ETC for tests), a compose tool (podman-compose or docker-compose), the user socket (systemctl --user is-active podman.socket), and a docker command that runs Podman. Exit 0 when all pass, 4 when something needs fixing (or Podman is missing).
  • containers socket enable [--yes] runs systemctl --user enable --now podman.socket and prints DOCKER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock.
  • containers docker-compat [--yes] installs podman-docker (ships /usr/bin/docker) and podman-compose with sudo pacman -S --needed. Refused with exit 4 while the docker package is installed (it conflicts). Real wrapper scripts are not written: the packages are the compatibility layer. The wizard asks docker_compat (default yes) when Podman is the engine; init runs it after the containers profile.
  • containers list [--json] lists every container on the configured engine (bxrig db engine, Podman by default) with ps -a --format: data.containers[] is {name, image, state ("running", "exited", "created", "paused"), ports (host ports, numbers), ports_text, created, kind}; kind is database for bxrig-db-*, vm for bxrig-vm-*, else container. containers start|stop|restart NAME act on one container by its engine name (reversible, so no --yes, like db stop and vm stop; starting a running or stopping a stopped container is a no-op with data.already). containers logs NAME [--lines=N] prints the last N lines (default 200, 1 to 10000; both output streams). Exit 2 for a bad name or --lines, 4 when the engine is missing or the container does not exist, 6 when the engine command fails. This is the data source of the Developer bar plugin. Tests: tests/containers-test.sh (fake Podman and Docker).
  • editor lazyvim [--yes] follows lazyvim.org/installation: installs neovim git ripgrep fd lazygit tree-sitter-cli when missing (tree-sitter-cli builds the grammars for nvim-treesitter's main branch, which LazyVim uses), git clone https://github.com/LazyVim/starter ~/.config/nvim, removes its .git. An existing ~/.config/nvim is never touched (exit 4 with the mv to run). Wizard: editor_starter (none default, lazyvim) on the Developer page.
  • Package names checked on archlinux.org 2026-11-12 (all in extra). Tests: tests/containers-test.sh.

13.18 Desktop utilities: clipboard history and screen recording (decided with the owner 2026-11-12)

Packages are catalog entries (all extra, checked 2026-11-12): cliphist, wf-recorder, pavucontrol, wiremix, nwg-displays, playerctl. grim, slurp, wl-clipboard, brightnessctl and hyprpicker already come with setup hyprland. The wizard's Extras page asks desktop_utilities (Hyprland and Both only; cliphist and wf-recorder preselected); the answers go into the single install step.

  • clipboard pick lists the history with your menu provider, decodes the chosen entry (cliphist decode, entry line on standard input) and copies it with wl-copy. Text entries only (binary entries are left out of the menu). clipboard clear [--yes] runs cliphist wipe (plan without --yes); clipboard status shows the tools and the entry count. Exit 4 when cliphist, wl-clipboard or the menu program is missing.
  • The Hyprland module (keys apply) starts the history at login: wl-paste --type text --watch cliphist store and the same for images, and binds Super+Ctrl+V to clipboard pick.
  • record [toggle|start|stop|status] [--region] [--dry-run] (default toggle) runs wf-recorder -f ~/Videos/bxrig-YYYYMMDD-HHMMSS.mp4 detached (BXRIG_VIDEOS changes the folder); --region adds -g "$(slurp)". Stop sends SIGINT (pkill -INT -x wf-recorder) so the file is finished. Hyprland binds Super+Shift+R (toggle), Super+Alt+Shift+R (a region) and Alt+Print (toggle with desktop audio, --audio=desktop; --audio=mic is in the menu). Exit 4 when wf-recorder or, for a region, slurp is missing. wf-recorder has no GPU encoding by default; gpu-screen-recorder (already in the catalog) is the faster option and is not wired here.
  • Tests: tests/utilities-test.sh. The wl-paste --watch autostart and the shortcuts are not verified on a real Hyprland session.

13.19 Shortcut editor (decided with the owner 2026-11-12)

Bindings are built from their key combo (Shortcuts.bindLine), so changing the keys changes the rendered Hyprland line and the Plasma text together.

  • keys set ID KEYS [--yes] [--force] (for example keys set ai-shell Super+Alt+A): one or more modifiers (Super, Shift, Alt, Ctrl) plus a letter, a digit, or a named key (Space, Tab, Return, Escape, `, comma, period, slash, minus, equal, arrows, Print, F1-F12). Exit 4 when the binding is unknown or is a Cmd-style remap (those are xremap's), the combo is invalid, another BxRig binding uses it (never overridable), or a line in your own ~/.config/hypr/*.lua already binds it (--force allows that one). Plan without --yes (exit 2). The override is saved in ~/.config/bxrig/shortcuts.json through the config service; it takes effect with keys apply --yes.
  • keys reset ID [--yes] removes the override.
  • keys conflicts [--json] reports combos used twice inside the table and clashes with your own hl.bind( lines (best effort: it reads mainMod and the quoted names on the line, it is not a Lua parser; bxrig.lua is skipped).
  • keys show marks changed rows (custom). The screen-record region shortcut is its own row (screen-record-region). Tests: tests/keys-editor-test.sh.

13.20 Web apps, NordVPN setup and remote desktop (decided with the owner 2026-11-12)

  • web add NAME URL [--browser=brave|chromium|google-chrome|edge|firefox] [--yes] writes ~/.local/share/applications/bxrig-web-NAME.desktop (XDG_DATA_HOME is honored). Chromium-family browsers get Exec=BROWSER --app=URL (a window without tabs or address bar); Firefox has no app mode, so it gets --new-window URL. The browser is --browser, else your default (xdg-settings get default-web-browser) when it is one of those and installed, else the first installed. NAME is letters, digits, -, _; the URL must be http(s) without spaces or quotes. Written through the config service: the same text again is fine, an entry you edited is kept (exit 4). web list shows the apps BxRig made (the URL is stored as X-BxRig-Web=); web rm NAME [--yes] deletes one. Plan without --yes (exit 2). Browser commands: chromium; brave, google-chrome-stable, microsoft-edge-stable, firefox are the vendors' usual names, not verified here. No icon is fetched (Icon=web-browser).
  • vpn nordvpn setup [--yes] runs the two steps the nordvpn-bin AUR package prints in its install notes (checked 2026-11-12): sudo systemctl enable --now nordvpnd and sudo gpasswd -a $USER nordvpn (log out and in afterwards), then nordvpn login by hand. NordLayer is not covered. The wizard's VPN question offers NordVPN (catalog nordvpn); init installs it and runs the setup as an optional step.
  • Remote desktop: the wizard's remote_desktop multi-choice (Remmina, RustDesk, Moonlight, Sunshine; nothing preselected) installs catalog apps in the single install step. These were already in the catalog; there is no command of their own.
  • Tests: tests/web-vpn-test.sh.

13.21 Runtime controls and cloud storage (decided with the owner 2026-11-12)

  • layout [toggle|float|tile|status] [--dry-run] (default toggle). Hyprland: the windows of the active workspace come from hyprctl activeworkspace -j and hyprctl clients -j; each one that is not already there gets hyprctl dispatch setfloating address:ADDR or settiled address:ADDR. toggle floats everything when at least one window is tiled, otherwise tiles everything. Plasma: HyprKwin is a session-wide switch, so toggle flips tiling on|off (float = off, tile = on). Exit 4 without a Hyprland or Plasma session. The dispatchers are the documented legacy ones and are not verified on a Hyprland 0.55+ Lua session; there is no keyboard shortcut yet (bind it with the editor or by hand).
  • keys mac [on|off|status] [--yes] enables or disables the user service xremap that setup xremap wrote (systemctl --user enable|disable --now xremap), so the Cmd-style keys go back to plain Super shortcuts without uninstalling anything. Exit 4 when the unit is not set up. keys style traditional|mac [--keyboard=pc|apple] [--swap=on|off] [--yes] is the newer, fuller switch (it also rewrites the Hyprland module and the Alt/Win swap); keys mac stays as the xremap service switch.
  • Not done: a theme manager (colors.toml themes to Noctalia palettes). It needs Noctalia's runtime theme interface, which has not been verified; setup hyprland --theme=dark|light|auto still picks the theme of the starter.
  • cloud remotes | configure | mount NAME [--path=DIR] [--yes] | unmount NAME [--yes] | status: rclone remotes as folders. configure hands your terminal to rclone config (BxRig never sees the logins). mount writes ~/.config/systemd/user/bxrig-cloud-NAME.service through the config service (Type=notify, rclone mount NAME: DIR --vfs-cache-mode writes, ExecStop=fusermount3 -u DIR, WantedBy=default.target), reloads systemd and runs enable --now; DIR is ~/Cloud/NAME, absolute, without spaces or quotes. An edited unit is never overwritten (exit 4). unmount disables and stops it and deletes the unit only while it is still the text BxRig wrote. Exit 4: rclone or fuse3 missing, unknown remote. The wizard's cloud_storage (default no) installs rclone and fuse3. Package facts checked on archlinux.org 2026-11-12. Not run against a real remote here. Tests: tests/runtime-cloud-test.sh.

13.22 All apps window, answers to take to another machine, snapshot GUIs (decided with the owner 2026-11-12)

  • apps shows every installed application in one window with your menu provider and starts the choice; apps list [--json] prints them. It is an app grid; Super+Alt+Space is runner launch, and apps is reached from the menu. The list is the *.desktop entries of /usr/share/applications, ~/.local/share/applications and the Flatpak exports (BXRIG_APPS_DIRS overrides, colon separated). A later folder wins for the same file name, so Hidden=true in your own folder removes an app. Only Type=Application entries without NoDisplay or Hidden are listed, sorted by name; icons are passed to providers that take them. An entry starts with its Exec line, field codes (%U and the like) removed, detached. Exit 4 when no menu program or no application is found. There is no press-again-to-close: Esc cancels.
  • Keys: Super+Alt+Space launches apps with your launcher (runner launch) and Super+Space opens the control center (owner, 2026-11-15); change either with keys set. The Apps entry of the menu runs apps. Plasma has its own menu on the Meta key, so nothing is added there. Tests: tests/apps-test.sh.
  • The wizard's answers live in ~/.config/bxrig/answers.json (mode 600, no secrets) and fill the wizard on the next run. init --export=FILE [--force] copies them (mode 600); on another machine init --from=FILE fills the wizard with them, and init --answers=FILE --yes runs them without asking.
  • Catalog: btrfs-assistant and timeshift (both extra, verified 2026-11-12) are in the default tier, so a plain install and Basic mode install them. Btrfs Assistant is in the default set only when / is Btrfs: the catalog entry has filesystems: ["btrfs"], the resolver skips it elsewhere as wrong_filesystem (an unreadable filesystem counts as not Btrfs; BXRIG_ROOT_FS overrides the detection, which is findmnt -n -o FSTYPE /), and naming it (install btrfs-assistant) still installs it. Timeshift has no such condition (it also works with rsync).

13.23 Layouts per desktop (decided with the owner 2026-11-12)

The wizard asks the window layout once per desktop you set up: Hyprland (layout: dwindle, master, columns, scrolling, monocle, floating) and KDE Plasma (plasma_layout: dwindle, master, monocle, scrolling, stage). "Both" asks twice. The Plasma list is HyprKwin's (README, 2026-11-12); floating is a per-window rule there, not a layout.

  • tiling layout [NAME] runs hyprkwinctl layout [NAME] for the current workspace (HyprKwin remembers each workspace's layout in ~/.config/hyprkwinrc); without a name it shows the current one. Exit 4 for an unknown layout, no HyprKwin, no hyprkwinctl, or no running KWin; 6 when hyprkwinctl fails. init runs it as an optional step (it needs a Plasma session).
  • BxRig does not write HyprKwin's default layout for the other workspaces: the settings page names a "Layout" setting (default dwindle) but its config key is not documented. Set it in System Settings, Window Management, KWin Scripts, HyprKwin. Workspace rules (workspace = 2, layout:master) are also entered on that settings page.
  • Hyprland layouts (2026-11-16) come from one list, HyprLayout.bx, read by the wizard, setup hyprland --layout, appearance layout and the menu. columns is Hyprland's master layout with orientation = "center" and mfact = 0.34 (three even columns once two windows sit beside the master); floating is dwindle with a float-everything window rule. Every option and dispatcher below is from Hyprland's wiki (configuring/layouts, core/dispatchers, code-snippets) and has not run on a live Hyprland session here.
  • Window keys (2026-11-16, Hyprland only; Plasma keeps HyprKwin's): Super+M maximize (hl.dsp.window.fullscreen({ mode = "maximized", action = "toggle" })); Super+H minimize and Super+Shift+H restore are now Lua dispatches in the binding (window minimize|restore tries the legacy hyprctl dispatch words, then the Lua form); Super+Shift+J cycles dwindle, master, columns, scrolling, monocle on the current workspace with hl.workspace_rule (the wiki's "Cycle layout for current workspace" snippet) and shows a notification; Super+Minus / Super+Equal send the layout's own message: splitratio -0.1/+0.1 (dwindle), mfact -0.05/+0.05 (master, columns), colresize -conf/+conf (scrolling: explicit_column_widths, default 1/3, 1/2, 2/3, full); Super+Ctrl+Left/Right focus workspace r-1/r+1, with Alt the window moves there (2026-11-17: Shift went to the monitor keys). Since 2026-11-17: Super+Ctrl+Shift+arrows move the window to the monitor in that direction (hl.dsp.window.move({ monitor = "l" })), Super+Alt+Shift+arrows move the workspace (hl.dsp.workspace.move({ monitor = ... })), Ctrl+Alt+Tab / with Shift focus the next / previous monitor (focus({ monitor = "+1" })), Super+Ctrl+Tab goes back to the last workspace (previous_per_monitor); Super+Alt+Up/Down snap to the top / bottom half and Super+Alt+Shift+C centers a floating window (hl.dsp.window.center()).
  • Snapping: the keys module turns on general.snap (enabled, respect_gaps) so floating windows snap to edges and each other; appearance windows snap off writes snap = { enabled = false } into look.lua. window snap left|right|top|bottom (Super+Alt+arrows) reads the focused monitor from hyprctl monitors -j (logical size = pixels / scale, minus reserved for the bar, 12 px gaps), then runs hyprctl dispatch with hl.dsp.window.float({ action = "set" }), resize({ x, y, relative = false }) and move({ x, y, relative = false }). Exit 4 with no focused window or monitor, 6 when hyprctl fails.
  • Tests: tests/tiling-test.sh, tests/init_plan_test.bxs.

13.24 System-aware wizard and status

bxrig status [--json] (read-only, exit 0) shows what the machine already has in the wizard's terms: detected answers per question (desktops from installed packages, shell from $SHELL, default terminal from xdg-terminals.list, default browser from xdg-settings, AI default, runner, container engine, installed apps per question) and the default apps still missing (the Resolver with the shell and root filesystem). --json data: detected (id, label, page, value), installed_catalog_apps, default_apps_missing.

bxrig init on a set-up machine starts from your saved answers merged with that scan (tune, the default): lists are joined, single choices follow the system when it says something, installed options show ✓ installed. --rerun uses the saved answers only, --fresh the defaults, --from=FILE replaces the saved answers with a file (answers exported on another machine). Nothing the machine has is ever removed. The plan output splits apps into to install and already installed. init --from-system --print-answers [--json] prints the scan merged over the saved answers.

13.25 Strata, dictation, Quick Look, Dolphin doctor (decided with the owner 2026-11-12)

  • Catalog source script: script: { url, args, shell } runs a vendor installer (curl -fsSL URL | bash -s -- ARGS); the URL and arguments are passed as arguments, never interpolated. The URL must be https without credentials, arguments match [A-Za-z0-9=._/:-]+, shell is sh or bash. Strata uses it with --non-interactive, pinned to a commit of lgse/strata.
  • File manager: the wizard asks file_manager (strata default, dolphin) on both desktops. flea is removed. default filemanager strata|dolphin [--yes] [--dry-run] runs xdg-mime default <app>.desktop inode/directory; default show reports it. Strata's installer also sets the folder handler, "Open file location" and the file chooser itself.
  • Send to providers: strata integrations [--dry-run] [--json] puts Strata's LocalSend and KDE Connect providers in ~/.config/strata/providers/<id>/ (provider.py, messages.json, LICENSE, and a provider.json naming python3), downloaded from the pinned Strata commit. An existing provider folder is kept. Exit 4 without curl or python3, 6 on a failed download. The kdeconnect catalog app installs kdeconnect, sshfs, qt6-tools (its optional dependencies) and python-gobject (the provider needs it); localsend is already a default app.
  • Rust: rust is a Toolchains option, on by default with Java. rustup itself comes with install.sh; the plan step is rustup default stable (optional).
  • Dictation: dictation setup [superwhisper|voxtype] [--yes] [--dry-run], dictation status, dictation key [ENGINE]. Superwhisper is the default (hold Right Alt to talk, release to paste; changed in its own Configuration). Voxtype is the alternative (hold F9; voxtype setup model; ~/.config/voxtype/config.toml) and installs wtype too. BxRig adds no shortcut of its own and does not rebind them. A double tap of Fn or Ctrl is not built: Fn often never reaches Linux and Hyprland cannot bind a double tap. The wizard asks dictation (superwhisper default, voxtype, none).
  • Quick Look: quicklook [PATH] [--dry-run] runs kiview -s PATH (a folder with no path given: kiview DIR). Kiview's README says it has no Dolphin integration yet, so there is no Space key in Dolphin; Dolphin's Preview panel (F11) and Strata's built-in preview exist. kiview is an optional AUR app.
  • Dolphin doctor: dolphin doctor [--fix] [--json] checks the applications menu file (an empty "Open with" menu), XDG_MENU_PREFIX, the KDE helper packages (kio-extras, thumbnailers, kimageformats, ffmpegthumbs), a default folder handler and a polkit agent. --fix runs kbuildsycoca6 --noincremental. Exit 0, 4 when something needs fixing, 6 when --fix failed. Unverified on a real machine: that these are the only causes.
  • Tests: tests/strata-test.sh, tests/extras-test.sh, tests/default-test.sh, installer_test.bxs (script source), catalog_check.bxs, init_plan_test.bxs.

13.26 Cheat sheet, screenshots, notifications (decided with the owner 2026-11-12)

  • Noctalia has its own commands (Noctalia docs, v5.4, noctalia msg ...): screenshot-region|fullscreen|window|annotate (with built-in annotation), notification-dnd-set on|off, notification-dnd-toggle, notification-dnd-status, notification-clear-active, notification-clear-history, plus clipboard, wallpaper (wallpaper-set) and theme (theme-mode-set, color-scheme-set, templates-apply) commands. BxRig wraps them; this also removes the Noctalia theme blocker for the theme manager.
  • keys sheet [--json]: the shortcut cheat sheet (Hyprland Super+K), every row of the shared table with its action and how it is bound, in your menu program (searchable); without one it prints the list. Read-only.
  • screenshot screen|region|window [--edit] [--dry-run]: Hyprland with Noctalia: noctalia msg screenshot-fullscreen|region|window (--edit adds --annotate); Hyprland without Noctalia: grim and slurp into the clipboard; Plasma: Spectacle (-f, -r, -a). The desktop is read from XDG_CURRENT_DESKTOP (BXRIG_DESKTOP overrides). screenshot ocr drags a region and copies its text (tesseract); screenshot qr reads a QR code from a region (zbarimg) and copies it; screenshot menu is the Cmd+Shift+5 style picker (Screen, Region, Window, OCR, QR, Record). qr TEXT [--out=FILE.png] makes a QR code (qrencode). Exit 0, 4 tool missing, 6 failed.
  • Screenshot keys (Hyprland): Print is the region screenshot in both styles; the Mac style also has Super+Shift+3 screen, Super+Shift+4 region, Super+Shift+5 menu (rows of the table, not of the starter file). Super+Print is the color picker (screenshot color, hyprpicker). On Plasma Spectacle's own shortcuts apply; BxRig does not rebind them (the kglobalshortcutsrc keys are not verified). Flameshot is now optional; Spectacle (Plasma only), grim, slurp, tesseract, zbar and qrencode are catalog apps; VLC is optional.
  • notify dnd on|off|toggle|status, notify snooze [30m|2h|90s|MINUTES|off], notify clear [--history]: Do Not Disturb through Noctalia. Snooze turns Do Not Disturb on and starts a transient user timer (systemd-run --user --unit=bxrig-snooze --on-active=Ns noctalia msg notification-dnd-set off); snooze off stops the timer and turns it off; the default is 30 minutes. Noctalia has no command that opens its history panel, so there is none here. Shortcut Super+Alt+N toggles Do Not Disturb; the menu has a Notifications submenu and a Screenshot entry. Exit 0, 4 no noctalia or systemd-run or a bad duration, 6 failed.
  • Tests: tests/capture-notify-test.sh (fake tools), shortcuts_test.bxs (15 rows), menu-test.sh, keys-test.sh.

13.27 Four workspaces and the Plasma panel layout (decided with the owner 2026-11-12)

  • Four workspaces by default: the wizard's "Workspaces always shown" and the Hyprland starter default to 4 (was 2). On Plasma the same number is the virtual desktop count: plasma desktops N [--yes] writes kwinrc [Desktops] Number=N, Rows=1 and asks KWin to reconfigure.
  • plasma panels apply|undo|status [--agenda] [--without-weather] [--desktops=N] [--preset=NAME] [--yes] [--dry-run] [--json]: replaces your Plasma panels with the BxRig layout through Plasma's scripting (qdbus6 org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript). Top panel, status only, left to right: Application Launcher (org.kde.plasma.kickoff), Virtual Desktop Pager (org.kde.plasma.pager), Active Window Title (org.kde.windowtitle), flexible spacer, Digital Clock (org.kde.plasma.digitalclock; with --agenda Event Calendar org.kde.plasma.eventcalendar), flexible spacer, Weather Report (org.kde.plasma.weather, off with --without-weather), Media Controller (org.kde.plasma.mediacontroller), KVitals (org.kde.plasma.kvitals), System Tray (org.kde.plasma.systemtray, notifications are inside it) and Panel Colorizer (luisbocanegra.panel.colorizer). Panel Colorizer's islands are switched on (islandsEnabled, islandSeparatorWidget) and its islands separator sits between Launcher + Pager, Window, Clock, Media + KVitals and Tray; the built-in preset (default Rounded Widgets) is applied with the Colorizer D-Bus signal luisbocanegra.panel.colorizer.all.preset. Bottom panel: a dock with the icons-only Task Manager (org.kde.plasma.icontasks). Plugin ids come from each widget's metadata.json.
  • Backup and undo: the first apply copies plasma-org.kde.plasma.desktop-appletsrc to ~/.config/bxrig/plasma-panels/backup/ and keeps that first copy; undo --yes puts it back (log out and in). Without a running Plasma session (for example from Hyprland) the script is saved and a one-time autostart entry applies it at the next Plasma login and is removed once applied. Exit 0, 2 plan without --yes, 4 precondition, 6 Plasma refused the script.
  • Wizard (Plasma or Both): plasma_panels (bxrig default, or keep), plasma_weather (default on), plasma_agenda (default off). The plan installs the widget apps (Plasma-only catalog entries panel-colorizer, panel-colorizer-islands, window-title, kvitals, kdeplasma-addons, event-calendar) and runs the optional step plasma panels apply --desktops=<workspaces> (or plasma desktops N when you keep your panels). kvitals is only packaged as a git build.
  • Not verified on a real Plasma session: the Panel property names (location, height, lengthMode), Panel Colorizer's config group and keys beyond what its main.xml declares, and that applying the preset by D-Bus reaches the new instance. The layout is reversible through the backup.
  • Tests: tests/plasma-panels-test.sh (fake qdbus6, kwriteconfig6, dbus-send), init_plan_test.bxs, wizard_app_test.bxs.

13.28 Web app bundles, databases, BoxLang ecosystem (decided with the owner 2026-11-13)

  • Catalog: DBeaver (dbeaver, extra) and HeidiSQL (heidisql-qt6-bin, AUR native Qt6 build; HeidiSQL's download page lists Linux x64 and arm64) are optional; TablePlus was dropped. RClone Browser (rclone-browser, AUR) is the optional GUI for S3 and other clouds (the Transmit and Cyberduck role). Apple web apps (iCloud, Mail, Calendar, Notes, Photos, Pages, Numbers, Keynote, Apple Music, Apple TV) and Try BoxLang (default) are web apps. Catalog apps may carry a bundle (google, microsoft, apple, boxlang).
  • web install google|microsoft|apple|boxlang|all [--yes] [--dry-run] [--json]: adds every web app of the bundle as a launcher entry (the catalog's web source). Exit 0, 2 plan without --yes, 4 unknown bundle, 6 an entry failed. The menu has "Install all Google, Microsoft, Apple apps" under Web apps and the wizard asks web_bundles (a multi-select).
  • boxlang status|use VERSION|matchbox use VERSION|matchbox status|matchbox log-level LEVEL|matchbox env list|set|unset|modules ...|vscode|links|welcome [--json]: on top of what install.sh installs (Java 21, bvm, mvm, BoxLang, MatchBox). use runs bvm install when the version is missing then bvm use (latest, snapshot or a number); matchbox use does the same with mvm. The MatchBox runtime home is ~/.matchbox (MATCHBOX_HOME, registered in Env), created by MatchBox on its first run, with config/boxlang.json (the BoxLang config format), logs/ and the user env file ~/.matchbox.env; a ./boxlang.json and a ./.env in the directory a program runs in are read too. matchbox status reports them (read-only, exit 0). matchbox log-level ERROR|WARN|INFO|DEBUG|TRACE|OFF changes the one logging.rootLevel value in the home config as exact text (comments stay; with no config file it writes a small one; a file without exactly one rootLevel is left alone, exit 4). matchbox env list names the keys of ~/.matchbox.env and never shows a value; env set KEY VALUE and env unset KEY change one line and keep the rest (mode 600; a value with spaces or # is quoted; a value with both quote characters or a line break is refused, exit 4). Every command result (Cli.say) is also written with writeLog( text = "COMMAND exit N", log = "bxrig" ), so MatchBox's bxrig logger (~/.matchbox/logs/bxrig.log, lines [bxrig] COMMAND exit N) records it: exit 0 as information, 2 and 10 as debug, 1, 3 and 4 as warning, anything else as error. MatchBox's default level is WARN, so a normal run writes nothing until logging.loggers.bxrig.level is lowered; a MatchBox without a runtime home ignores the call, and a logging problem never changes the exit code. log-level and env set|unset are mutations: a plan (exit 2) until --yes, --dry-run prints it (exit 0), and a plan never prints a value. modules list|search TEXT reads ForgeBox's public API as implemented in saas-forgebox modules_app/api-v1 (https://forgebox.io/api/v1/entries/boxlang-modules?orderBy=popular&max=50&offset=N[&searchTerm=]; max is capped at 50 per call, so the pages are followed until one is short, at most 20); modules install SLUG...|installed|outdated|update wrap bx-module. vscode runs code --install-extension ortus-solutions.vscode-boxlang and ortus-solutions.vscode-boxlang-developer-pack (names from Ortus's docs; VS Code is a default app). links lists the BoxLang sites; welcome writes ~/.config/bxrig/welcome.html (Try BoxLang, MatchBox, the ecosystem links) and opens it. The wizard (Toolchains page) asks boxlang_modules and boxlang_vscode; the menu has a BoxLang submenu. Exit 0, 4 tool missing or bad name, 6 failed. boxlang new APP is deliberately not built (later).
  • Tests: tests/boxlang-test.sh (fake bvm, mvm, bx-module, code, curl), web-vpn-test.sh, init_plan_test.bxs, menu-test.sh.

13.29 Mac-style extras (decided with the owner 2026-11-13)

  • Cmd keys: the shared shortcut table now remaps Super+Z X A S F T N O P R W L B I U Comma to their Ctrl versions in apps (undo, cut, select all, save, find, new tab, new window, open, print, reload, close tab, address bar, bold, italic, underline, preferences). In terminals Super+T N W F become Ctrl+Shift+T N W F and Z X A S ... pass through unchanged so shell shortcuts keep working. Super+Q closes the window, Super+H minimizes and Super+Shift+H shows minimized windows (window minimize|restore: hyprctl dispatch movetoworkspacesilent special:minimized and togglespecialworkspace minimized). Super+Ctrl+E emoji picker, Super+Alt+Escape force quit, Super+Ctrl+Up overview, Alt+Space dictation toggle (dictation toggle, voxtype record toggle), night shift has no key (menu only). Since 2026-11-15 only copy, paste, cut and select all are remaps in both styles; the rest of this list is the Mac style.
  • emoji: rofimoji. forcequit: Hyprland hyprctl kill (click the window); Plasma qdbus6 org.kde.KWin /KWin org.kde.KWin.killWindow. overview [setup]: Hyprland hyprctl dispatch hyprexpo:expo toggle (setup runs hyprpm update, hyprpm add https://github.com/hyprwm/hyprland-plugins, hyprpm enable hyprexpo); Plasma org.kde.kglobalaccel /component/kwin invokeShortcut Overview. Hot corners are not built: KWin's [Effect-overview] BorderActivate values could not be verified (set them in System Settings > Screen Edges).
  • nightshift [on|off|toggle|status] [--location=LAT,LON]: Hyprland: a user service bxrig-wlsunset.service running wlsunset -l LAT -L LON -t 3500 -T 6500; the coordinates come offline from your time zone in /usr/share/zoneinfo/zone.tab or zone1970.tab (BXRIG_ZONEINFO overrides the folder); an edited unit is kept. Plasma: kwinrc [NightColor] Active=true, Mode=Automatic (the Mode value is unverified). The wizard (Input page) asks night_shift, default on.
  • gpu doctor: lspci vendors (NVIDIA, AMD, Intel) and the driver packages that are missing (nvidia-utils, libva-nvidia-driver; mesa, vulkan-radeon, libva-mesa-driver; mesa, vulkan-intel, intel-media-driver), with a note that bxrig ai setup installs the CUDA or ROCm build of llama.cpp. Exit 4 when something is missing. CachyOS normally installs the driver itself.
  • input doctor and input gestures [--yes]: Magic Mouse and Trackpad checks (kernel hid_magicmouse, the bluetooth service, the input group) and ~/.config/libinput-gestures.conf with three-finger swipes (left and right: hyprctl dispatch workspace e+1 and e-1; up: overview; down: previous workspace), then libinput-gestures-setup autostart and start. The wizard asks gestures (Hyprland, default on) and installs libinput-gestures and bluez. input status|offer|apple|logitech|undo are in 13.65.
  • airplay on|off|status: UxPlay as bxrig-airplay.service (uxplay -n BxRig); it needs avahi-daemon. Wizard question airplay, default off.
  • Keyboard: the layout us-mac (English, Macintosh variant, Option-key characters) is a wizard choice for Hyprland and Plasma.
  • settings export FILE.tar.gz [--force] and settings import FILE.tar.gz [--yes]: the BxRig settings (not secrets, backups or state); import backs up each existing file as NAME.bak-STAMP and refuses archives with paths outside bxrig/. The menu has a Cloud storage submenu (remotes, configure, mounted status).
  • Not verified on a real machine: hyprexpo with the Lua config era, KWin killWindow, kwinrc NightColor, UxPlay, libinput-gestures with a Magic Trackpad.
  • Tests: tests/macextras-test.sh, shortcuts_test.bxs, menu-test.sh, keys-test.sh.

13.30 One-line installer, update channels, updates and notifications (decided with the owner 2026-11-13)

  • One line: curl -fsSL https://downloads.ortussolutions.com/ortussolutions/bxrig/install.sh | bash (bootstrap/web-install.sh is published as install.sh). It shows the BxRig wordmark in the cyan to green gradient, the tagline and "Powered by BoxLang", checks the machine (CachyOS or Arch, not root, x86_64, sudo), downloads the channel's bxrig-linux-x86_64 and bootstrap.tar.gz, verifies the Ed25519 signature of the release information (version-latest.properties.sig, OpenSSL, public key embedded in the published script) and the SHA-256 of both files against it, runs the stages of bootstrap/install.sh (packages, toolchains, binary --binary, core) behind spinners, then the setup wizard. There is no custom menu: it installs everything the wizard's defaults call for. Log: ~/.cache/bxrig/install.log.
  • No human input: ... | bash -s -- --yes [--answers FILE] [--channel stable|beta] [--no-wizard]. --yes never asks (it needs passwordless sudo or a primed sudo -v), the wizard then runs bxrig init --answers FILE --yes or, without a file, bxrig init --defaults --yes (the wizard's default answers). --dry-run shows the banner and checks and does nothing. --base-url or BXRIG_BASE_URL points elsewhere. Exit 1 on any failure (nothing is installed after a failed checksum), 2 when you decline. --source SPEC (BXRIG_SOURCE, decided 2026-11-18): stable (default), beta (= --channel beta) or github:OWNER/REPO@REF (REF a branch, tag or commit; github:@REF and github:REF mean ortus-boxlang/BxRig; OWNER and REPO [A-Za-z0-9._-]+, REF [A-Za-z0-9._/@+-]+ with no leading dash, no .., no leading or trailing slash; bad values and a --channel that disagrees exit 1). The github source skips the signed release: it is UNSIGNED (warning; --yes or the typed word unsigned at a terminal, else exit 2 before any download), downloads codeload.github.com/OWNER/REPO/tar.gz/REF (GITHUB_TOKEN or GH_TOKEN as a header through a curl config on stdin, never printed or logged; refuses paths outside the top folder), runs the tree's own bootstrap/install.sh stages (binary --yes --force builds from the tree's src/Main.bx), then the wizard from that binary. --dry-run with a github source downloads and unpacks it, prints the resolved commit and the tree's install.sh --dry-run plan, installs nothing. The source and the commit (the pax header git archive writes into the tarball) go to ~/.cache/bxrig/install.log and ~/.local/share/bxrig/install-source; bxrig update does not read that file (the binary differs from the channel's, so update check says an update exists and update apply --yes would replace the build). A github source compiles bxrig, so unless the user chose a MatchBox it passes --matchbox-from-source (the manifest branch, bxrig) to the toolchains stage; --snapshot is passed as given and the binary stage then stops at the capability check (never a silent switch). MatchBox options (decided 2026-11-18, see 14.1): --snapshot (BXRIG_MATCHBOX_CHANNEL=snapshot), --matchbox-branch REF (BXRIG_MATCHBOX_BRANCH), --matchbox-repo OWNER/NAME (BXRIG_MATCHBOX_REPO, ^[A-Za-z0-9._-]+/[A-Za-z0-9._-]+$, needs a branch) and --matchbox-from-source (= --matchbox-branch bxrig) are validated (bad values and --snapshot with a branch exit 1) and passed through to the toolchains stage; the stable path with the prebuilt binary needs no capable MatchBox, so its stages are unchanged.
  • Channels and S3 (downloads.ortussolutions.com/ortussolutions/bxrig/): stable/ (a v* tag), beta/ (every push to development, the bleeding edge), each with bxrig-linux-x86_64, .sha256, bootstrap.tar.gz, .sha256 and version-latest.properties (version, commit, sha256, channel, builtAt); snapshots/<version>-<sha>/ keeps every beta build and releases/<version>/ every stable one (uploads never delete). CI job 6 publishes when the AWS secrets exist (AWS_ACCESS_KEY, AWS_ACCESS_SECRET).
  • update check [--notify]: compares the running binary's SHA-256 with the channel's version-latest.properties; exit 10 when an update is available, 0 when current, 5 when the server is unreachable; also counts pending system updates (checkupdates). update apply [--yes] downloads the channel's binary, verifies its SHA-256 against its .sha256 and the signed release information, and replaces the installed binary atomically (exit 5 on a mismatch or a bad signature, the old binary stays). update channel [stable|beta] shows or sets the channel (~/.config/bxrig/update.json; the wizard asks update_channel, default stable). update notifications on|off|status manages a daily user timer bxrig-update-check.timer that runs update check --notify and shows a notification (noctalia msg notification-show, else notify-send); the wizard asks update_notifications, default on. system update [--yes] takes a snapshot first when snapper or timeshift is present, then sudo pacman -Syu --noconfirm and, with yay, yay -Sua --noconfirm. The menu has Settings entries for check, apply, both channels, notifications on and off, and system update.
  • Signing (owner decision 2026-11-13: sign the installer and update): CI signs every version-latest.properties and install.sh with Ed25519 (openssl pkeyutl -sign -rawin) using the secret BXRIG_SIGNING_KEY; the properties carry sha256 (binary) and bootstrap_sha256 (bundle). The public key is keys/release.pub (made with scripts/gen-signing-key.sh), embedded into the binary (bootstrap/gen-releasekey.sh writes src/bxrig/ReleaseKey.bx) and into the published install.sh (CI replaces @@PUBKEY_B64@@). With a key a missing or invalid signature, or a file that does not match the signed hash, stops the install or update before anything changes (exit 1 for the installer, 5 for update); without a key (a development build) only SHA-256 is checked. Limit: the very first curl | bash still trusts the script it downloads (TLS and the bucket), so the signature protects the files the script fetches and every later update; verify install.sh.sig by hand with keys/release.pub for a stricter first install.
  • system updates [--json] (read only, for the System bar panel): { total, repo_count, aur_count, packages: [ { name, old, new, repo } ], needs_reboot, reboot_pending, reboot_stale, reboot_reasons, last_update, last_update_epoch, last_update_ago, aur_helper, aur_error, snapshot_tool }. Repository rows come from checkupdates (exit 0 rows, 2 none, 1 error), AUR rows from yay -Qua or paru -Qua (no helper: none, not an error); repo of a package is repo or aur. Restart rule: reboot_pending when a waiting update replaces a kernel (linux and its lts, zen, hardened, rt, cachyos flavours, not headers, docs or driver modules), systemd, glibc, linux-firmware, a microcode package or the NVIDIA driver; reboot_stale when /usr/lib/modules/$(uname -r) is gone; needs_reboot is either. Exit 0 always except 4 (no pacman, no checkupdates, or checkupdates failed). Class SystemUpdates; the parsers are Pacman.parseUpgrades, Pacman.pendingUpdates and Aur.pendingUpdates (Aur.updateHelper is yay, else paru; installs still use yay).
  • system update [--repo|--aur|--all] [--yes] [--dry-run]: a snapshot first (snapper, else timeshift, else a note that there is none), then sudo pacman -Syu --noconfirm (--repo), the AUR helper -Sua --noconfirm (--aur, yay else paru; exit 4 without one) or both (--all, the default). Without --yes the plan is printed (exit 2), --dry-run shows it and exits 0; two scopes together are a usage error (2). Text mode prints [n/N] command as each step starts; the data of a run carries needs_reboot (the kernel that runs was replaced).
  • Tests: tests/web-install-test.sh (fake server and stages, signed and unsigned), tests/update-test.sh, tests/system-updates-test.sh, system_updates_test.bxs, init_plan_test.bxs.

13.31 Agent skills and the documentation site (decided with the owner 2026-11-13)

  • Skills: skills list [--tag=T]|search TEXT|show REF|install [NAME|REF]... [--yes]|installed|update [--yes]|remove NAME [--yes]|status|link. The store is ~/.agents/skills (BXRIG_SKILLS_DIR); each skill folder is linked (a symlink, never over something of yours) into the skills folder of every agent present: ~/.claude/skills, ~/.codex/skills, ~/.gemini/skills, ~/.config/opencode/skills (the last three are best effort). ~/.config/bxrig/skills.json records what BxRig installed (embedded or hub, the reference, the SHA-256). Names: bxrig (five skills embedded in the binary from skills/*/SKILL.md by bootstrap/gen-skills.sh: bxrig, bxrig-install-update, bxrig-desktop, bxrig-apps, bxrig-ai), boxlang (ortus-boxlang/skills/boxlang-developer~language-fundamentals) and matchbox (.../boxlang-developer~runtime-matchbox). A reference is OWNER/REPO/SLUG (SLUG is CATEGORY~NAME) or OWNER/REPO/CATEGORY/NAME. The hub is https://skills.boxlang.io (BXRIG_SKILLS_URL), whose API (sites-skills.boxlang.io, app/handlers/api/Skills.bx) is GET /api/skills?search=&tag=&perPage=&sort=, GET /api/skills/:owner/:repo/:slug, and POST /api/install {owner,repo,skill} which returns the SKILL.md with its audit; a skill that failed its audit is refused (403). Exit 0, 2 plan without --yes, 4 bad reference or unknown name, 5 the hub did not answer or refused, 6 a write failed. The wizard (AI page) asks agent_skills (default bxrig, boxlang, matchbox; optional) and runs one optional step; the menu has Settings entries.
  • Docs: built with bxSites (bxsites.yaml, docs/) and published to GitHub Pages at https://bxrig.boxlang.io by .github/workflows/docs.yml (a pull request builds and audits only). docs/ is the version being written (1.0.x); bxSites version:new --name=1.0.x freezes it and versions.default then serves it at the root with docs/ at /next/. i18n is configured for English only (i18n.defaultLocale). docs/reference/commands.md is generated from the usage text in src/Main.bx by bootstrap/gen-docs.sh (CI checks it). The bxSites agent skills (ortus-boxlang/bx-sites-skills) are installed in .agents/skills (skills-lock.json).
  • Tests: tests/skills-test.sh (fake hub and agents), init_plan_test.bxs.

13.32 Themes, the Neovim layer and the Starship BoxLang module (decided with the owner 2026-11-13)

  • Command: theme list|show NAME|set NAME [--mode=theme|dark|light|auto] [--keep-wallpaper]|random|next|mode theme|dark|light|auto|install GIT_URL [--name=N] [--force]|import PATH [--name=N] [--force]|remove NAME|status, all with --dry-run where they change anything and --json. Like runner set these are settings: they act at once (no --yes). Exit: 0 done, 2 bad usage or mode, 4 unknown or invalid theme (nothing is written), 6 a file could not be written.
  • Theme format: a folder in the colors.toml theme format, so themes move both ways: colors.toml, optional neovim.lua, optional backgrounds/ (the first file is the wallpaper). Both colors.toml shapes are read: the named one (accent background foreground selection muted red green yellow blue magenta cyan bright_*, mode = "dark"|"light") and the older color0..color15 one. The named shape maps to the 16 ANSI slots: black is background, white is foreground, bright black is muted, bright white is bright_foreground. A missing required key or a value that is not #rrggbb rejects the whole theme. Light or dark is the file's mode, else the background luminance (above 0.4 is light).
  • Sources, first match wins: ~/.config/bxrig/themes/NAME (installed or imported), theme folders of other desktops found on disk (~/.config/omarchy/themes/NAME and ~/.local/share/omarchy/themes/NAME), then 15 bundled in the binary: 10 community themes (catppuccin, catppuccin-latte, tokyo-night, gruvbox, nord, rose-pine, kanagawa, everforest, matte-black, flexoki-light; MIT, credited in themes/NOTICE.md) and 5 of ours (bxrig, bxrig-light, bxrig-midnight, bxrig-cyan, bxrig-forest). install takes an https git URL only (a repository named omarchy-NAME-theme becomes NAME), clones it shallow, validates it, refuses symlinks and an existing theme (without --force), and copies it without .git. Only your own themes can be removed, never the current one.
  • What set writes (through the config service: atomic, backed up, journalled; unchanged files are skipped): the Noctalia palette ~/.config/noctalia/palettes/BxRigTheme.json (the 16 roles are derived from the theme, both variants carry the same colours), ~/.config/bxrig/theme/{ghostty,kitty.conf,alacritty.toml,foot.ini,hypr.lua}, ~/.config/btop/themes/bxrig.theme, ~/.local/state/bxrig/current/theme/neovim.lua and every theme's neovim.lua in ~/.config/bxrig/nvim-themes/. Then it tells the desktop: noctalia msg color-scheme-set custom BxRigTheme, theme-mode-set, wallpaper-set (a bundled BxRig theme brings one of our wallpapers, an on-disk theme its backgrounds/, other bundled themes keep yours), plasma-apply-colorscheme BreezeDark|BreezeLight on KDE, hyprctl reload inside Hyprland. A missing or silent Noctalia is a note, not an error. Mode theme (default) follows the theme; dark, light or auto pin it; the mode survives set.
  • Where the files are used: the terminal starters (written once) include ~/.config/bxrig/theme/... (ghostty config-file = ?path, kitty include, alacritty [general] import, foot include=) and TerminalConfig.apply writes the default theme files, so an include never points at nothing; your own terminal configs are never edited. The managed hypr/bxrig.lua reads theme/hypr.lua (border colours). btop needs color_theme = "bxrig" in your btop.conf, which we do not edit.
  • Not themed in v1: the Starship prompt (fixed Catppuccin Mocha palette, no include mechanism), VS Code, Chromium, GTK and Qt apps (whether noctalia msg templates-apply themes them is unverified).
  • Neovim layer (editor lazyvim|boxlang|status|refresh): after the starter is cloned (an existing ~/.config/nvim is never touched) the layer is added: lua/config/bxrig.lua (relativenumber off, autoformat off, OSC 52 clipboard over SSH, loaded by one line added to options.lua), lua/plugins/bxrig.lua (no news popups, no scroll animation, transparent lualine), plugin/after/bxrig-transparency.lua, lua/plugins/boxlang.lua (ortus-boxlang/vim-boxlang, loaded at startup so its ftdetect runs first), lua/plugins/bxrig-themes.lua (every theme's colourscheme plugin listed lazily from nvim-themes/), lua/plugins/bxrig-theme-reload.lua (a libuv watcher re-applies the colourscheme when the theme file changes), lua/plugins/theme.lua (a link to the current theme's neovim.lua) and the neo-tree extra merged into lazyvim.json. Written by us. editor boxlang adds only the plugin file to a LazyVim config you have. refresh rewrites the files still as BxRig wrote them and keeps the ones you changed unless --force.
  • Theme depth (2026-11-13): set also writes theme/tmux.conf, theme/fzf.sh (FZF_DEFAULT_OPTS), theme/rofi/theme.rasi (plus a rofi/config.rasi stub only when none exists), GTK 4 and 3 gtk.css (libadwaita @define-color names, adw-gtk3 for GTK 3), qt6ct and qt5ct colors/bxrig.conf (21 ARGB roles), fuzzel/fuzzel.ini and wofi/style.css: 18 files in all, each kept when you edit it. It sets gsettings color-scheme (prefer-dark or prefer-light) and the adw-gtk3 theme when installed. theme vscode [--yes] [--dry-run] is opt-in: plan first (exit 2), then a plain-JSON merge into workbench.colorCustomizations of Code, Code - OSS, VSCodium or Cursor with a backup; a settings.json with comments or trailing commas is skipped. Exit 4 when no settings file exists. Unverified on a real desktop: that GTK, Qt, rofi, fuzzel and wofi pick the files up as written.
  • Wizard: theme_name (default bxrig; a Light answer with the default picks bxrig-light) is chosen on its own Theme page (not on the Look page) and runs theme set after the terminals, optional, for Hyprland and Plasma; when a theme is applied already, choosing bxrig again still runs theme set bxrig (InitPlan.plan is told the applied theme); the editor answer now includes the layer and BoxLang syntax. The Themes menu has next, random, the five BxRig themes, the four modes and status.
  • Starship: the starter prompt shows the BoxLang version like Java: custom.boxlang (${custom.boxlang} in the format), shown only in a directory with .bx .bxs .bxm .cfc .cfm .cfs files or box.json, Application.bx, Application.cfc. It has no when (Starship shows a custom module when ANY of when, detect_files, detect_extensions matches, so when would show it everywhere); its command prints the ~/.bvm/current symlink name (honouring BVM_HOME) or nothing. The starter is written once, so existing installs see the change with bxrig config diff starship.
  • Verified and not: tested with fake noctalia, plasma-apply-colorscheme, hyprctl, git, pacman (tests/theme-test.sh, tests/editor-test.sh, tests/theme_colors_test.bxs, tests/init_plan_test.bxs); the Lua files only parse-checked and the theme loader run against a stub vim (no Neovim here); the Starship command logic run in sh, not by Starship. Unverified on a real machine: the Noctalia IPC argument forms against a running Noctalia, Hyprland's dofile and hl.config from the managed module and hyprctl reload with a Lua config, ghostty's ? optional include, kitty, alacritty [general] import and foot include= with a missing file, the foot [colors-dark] section on the installed foot, lazy.nvim picking the colourscheme plugin up on :colorscheme, vim-boxlang loading with lazy = false, Starship hiding a custom module on empty output.

13.33 Virtual machines: Windows and Linux desktops in containers (decided with the owner 2026-11-13)

  • Command: vm list|status [NAME]|size [NAME]|info NAME [--show-password]|doctor|versions linux|windows|create windows [NAME] [--version=V] [--ram=] [--cpus=] [--disk=] [--share=PATH|none]|create linux NAME [--tag=T] [--cpus=] [--memory=] [--share=PATH|none] [--gpu=none|auto|intel|amd|nvidia]|start|stop|logs NAME|open NAME [--web] [--fullscreen]|remove NAME [--keep-data], with --json. create and remove are plans until --yes (--dry-run too). Exit: 0 done, 2 plan or bad usage, 4 precondition (bad name or version, KVM unusable, no engine, no terminal to choose a Windows version on, GPU not possible), 6 a command failed.
  • Two kinds, any number of each. Every VM has a name ([a-z0-9-], up to 31) and a record in ~/.config/bxrig/vms/NAME.json (mode 600). Windows is dockurr/windows; a Linux desktop is LinuxServer's lscr.io/linuxserver/webtop:TAG. The container is bxrig-vm-NAME, labelled io.bxrig.vm. The first Windows is named windows. The engine is the one bxrig db engine chose (Podman by default).
  • Where things live (documented for the user in docs/guides/vms.md): data in ~/.local/share/bxrig/vms/NAME (storage is the Windows disk, config is the Linux desktop's home folder), the record above, the password in the keyring as BXRIG_VM_<NAME>_PASSWORD (bxrig secrets), an app-menu launcher ~/.local/share/applications/bxrig-vm-NAME.desktop (runs vm open NAME), and a shared folder: ~/Windows (drive Z:) or ~/Shared (/config/Shared), or --share=none. remove deletes the container, the data, the password, the record and the launcher; the shared folder is never deleted; --keep-data keeps data, password and record. size is du of the data folder; the images are in the engine (podman image ls).
  • Security: ports bind to 127.0.0.1 only (the webtop terminal has passwordless sudo; the Windows web viewer and RDP are for you). The password is generated (16 random bytes), stored in the keyring, and reaches the container through an env file (mode 600) that is deleted right after run. The default admin password of dockur is never used.
  • Ports: Linux 3001 upward (HTTPS, a self-signed certificate: accept it once); Windows web viewer 8006 upward and RDP 3389 upward (TCP and UDP); each VM takes the first port no record uses and nothing listens on.
  • Windows: --version takes any dockur VERSION value (25, vm versions windows). Without it at a terminal, a picker shows ten choices with sizes and notes (11 Pro, 11 LTSC, 11 Enterprise, 10 Pro, 10 LTSC, Tiny11, Tiny11 Core, Tiny10, Server 2025 and 2022; the Tiny builds are marked UNOFFICIAL); with no terminal it exits 4 (a script passes --version; with --json the picker text goes to the terminal device, never stdout). Defaults: RAM half the machine (4G to 8G), CPUs half (2 to 8), disk 64G. Run: --device /dev/kvm --device /dev/net/tun --cap-add NET_ADMIN --stop-timeout 120, env VERSION RAM_SIZE CPU_CORES DISK_SIZE USERNAME PASSWORD. The install downloads the ISO inside the container on the first start (3 to 8 GB) and takes a while; you need your own Windows license (dockur uses generic trial keys that do not activate). open starts the VM if needed, waits for RDP, then runs the first FreeRDP client found (sdl-freerdp3, sdl-freerdp, xfreerdp3, xfreerdp, wlfreerdp3, wlfreerdp) with /args-from:file:PATH: a mode 600 file holding /v: /u: /p: /cert:ignore +clipboard /dynamic-resolution /title: (and /f), so the password is never on a command line; the file is removed after 15 seconds. While Windows is still installing, open says so and points at open --web (the browser viewer).
  • Linux: 21 tags from the webtop page (Ubuntu, Debian, Fedora, Arch: xfce, kde, mate, i3, and lxqt for Ubuntu; Alpine with the upstream latest tag as alpine-xfce); default ubuntu-xfce. The dev tag and the deprecated Enterprise Linux tags are not offered; KDE tags are Wayland only. Run: --shm-size 1gb, env PUID PGID TZ CUSTOM_USER=bxrig PASSWORD, -v data:/config. Rootless Podman maps the container's root to you, so PUID and PGID are 0 there (files stay yours); Docker uses your ids. --cpus and --memory map to the engine flags. When the host has no IPv6 (/proc/sys/net/ipv6 missing) the container also gets DISABLE_IPV6=true, because the image's nginx otherwise fails on listen [::] (found by running the real image; doctor notes it).
  • GPU (Linux desktops, opt-in): intel and amd add --device /dev/dri (needs it to exist); auto does that when /dev/dri exists and nothing otherwise; nvidia follows the webtop docs: Docker gets --runtime nvidia --gpus all --device /dev/nvidia-modeset, Podman gets CDI (--device nvidia.com/gpu=all --device /dev/nvidia-modeset). The Alpine tags refuse NVIDIA. doctor reports /dev/dri, the NVIDIA driver version (the docs ask for 580 or newer) and nvidia-ctk. Windows has no GPU option.
  • Wizard and menu: two optional questions after the databases: vm_windows (none or one of the ten, with descriptions) and vm_linux (none or six tags); they become optional steps vm create windows --version=V and vm create linux desktop --tag=T, and add the Podman install when no engine answer was given. The menu has a Virtual machines entry (list, sizes, doctor, the two version tables).
  • Verified and not: tested against fake Podman and Docker (every run argument, files, modes, ports, passwords, launchers, exit codes) in tests/vm-test.sh and tests/init_plan_test.bxs. Also run for real (2026-11-13, a sandbox with Docker 29.9.2, no KVM, no IPv6, running as root): vm create linux with the real lscr.io/linuxserver/webtop:ubuntu-xfce image through bxrig: the published 127.0.0.1:3001 answers 401 without credentials, 200 with the generated password and 401 with a wrong one; the shared folder works both ways; start, stop, status, size, info, open (browser launch only) and remove behave. Never run: Windows (no /dev/kvm here), Podman, a non-root user (so PUID and file ownership are untested), GPUs, FreeRDP. Unverified on a real machine: Windows booting under rootless Podman (/dev/kvm, /dev/net/tun, NET_ADMIN), RDP through the published 127.0.0.1 port (dockur documents the container's own IP too), dockur on a Btrfs disk (CachyOS default; not checked in its README), webtop under rootless Podman with PUID 0 and as a non-root Docker user, the NVIDIA paths (driver 580 or newer from a .run file per the docs, whether CachyOS's packaged driver counts, CDI on Podman, the Arch package name nvidia-container-toolkit), and the FreeRDP argument file (/args-from:file: read from the FreeRDP 3 source, the client binary names are a best guess).

13.34 The menu, package search and remove (decided with the owner 2026-11-13)

  • Menu skeleton. bxrig menu has these sections: Apps, Setup wizard (re-run, prefilled), Install, Remove, Appearance, Trigger, Setup, Update, Develop (BoxLang, databases, virtual machines, containers, the editor), Agent, Learn, About, System. What used to be top-level BxRig entries are folded in: Themes into Appearance, Notifications and Screenshot into Trigger, Cloud storage and Settings into Setup, Web apps into Install and Remove. The tree is MenuTree (data); menu items [--json] prints it, menu search TEXT [--json] lists the entries whose path matches with the command each runs (the CLI mirror of the in-menu search). The wizard entry (kind term) opens bxrig init (the default tune mode: your saved answers merged with what this machine has, installed options marked, the review before anything changes) in a terminal that closes when it ends; it is the one way back into the wizard. Every top-level section has a different freedesktop icon name in themeIcon (menu items --json); the runner sends it to providers that draw icons (Rofi, Fuzzel) with the row, with system-search, go-previous and application-exit for Search, Back and Exit. The menu had 63 actions and now has 136 (the Appearance, Trigger, Setup, Update and System depth is still to come, see the parity plan).
  • Search. The first entry of the top level is Search…: one flat list of every entry as a path ("Appearance > Next theme"); the menu provider filters as you type, and the choice runs exactly as it would from its section.
  • Entry kinds: sub, spawn (detached), run (in a terminal, waits for Enter: output and sudo prompts), open (xdg-open a URL), pick (choose from a live list, then run with {} replaced), ask (type a line, then run), pkgsearch (type, choose a package from the repos or the AUR, confirm, pkg install in a terminal), catalog (one catalog group, choose, confirm, install ID --yes in a terminal), db, webcreate, webrm. A confirm asks before running (reboot, shutdown, logout, every removal). Live lists: themes (the current one marked ✓), your themes, installed browsers, terminals and file managers, explicit packages, installed catalog apps, VMs, installed skills. Providers that cannot take typed text open a terminal that asks (bxrig web add) or say what to type.
  • pkg: pkg search TEXT [--source=all|repo|aur] [--limit=40] (pacman -Ss and the AUR RPC v5 search/TEXT?by=name-desc; exact names first, then repo packages, then AUR by popularity; installed ones marked; an AUR outage is a note, repo results stay), pkg info NAME, pkg installed [--explicit], pkg install NAME... [--aur] [--yes] (repo packages through the existing installer steps, AUR packages through yay -S --needed --noconfirm; never as root for the AUR, exit 4 without yay; the plan warns that AUR packages are user-submitted scripts and points at yay -G NAME), pkg remove NAME... [--yes] (pacman -Rns --noconfirm, one package at a time). Protected and never removed: base, pacman, sudo, systemd, glibc, bash, coreutils, filesystem, linux-firmware, grub, util-linux, shadow, the keyrings, linux* kernels and their headers and NVIDIA modules, and the cachyos-settings, cachyos-hooks and mirrorlist packages. Not-installed names are a no-op. Names are validated ([a-z0-9@._+-]), search text too.
  • remove ID_OR_PACKAGE...: a catalog id removes what installing it put there (pacman, AUR and PKGBUILD apps: their targets through pkg remove; web apps: the launcher file); a vendor-script app is reported with exit 4 ("use its own uninstaller"); anything that is not a catalog id is taken as a package name. A plan until --yes; your files in ~/.config and ~/.local are never touched.
  • system lock|suspend|logout|reboot|shutdown: through noctalia msg session ... inside Hyprland with Noctalia (Noctalia IPC docs), else loginctl lock-session, systemctl suspend|reboot|poweroff, loginctl terminate-session. Lock and suspend act at once; logout, reboot and shutdown are a plan until --yes (the menu asks first).
  • Verified: tests/pkg-test.sh (fake pacman, yay, curl, sudo, id) and tests/menu-test.sh (fake Rofi, Wofi and terminal); pkg search|info|install|remove and remove were also run against the real Arch repos and the live AUR in the Arch test container (search, install and remove of cowsay, jq removed by catalog id, protected packages refused). Not verified: the menu on a real provider (Rofi, Walker, Fuzzel), AUR installs through yay, system actions on a real session.

13.35 Appearance (decided with the owner 2026-11-13)

  • bxrig appearance status|apply and verbs bar show|hide|toggle|position top|bottom|left|right|style opaque|glassy|clear|clock ID|battery on|off, dock show|hide|toggle|mode always|autohide|off|position bottom|left|right, windows gaps on|off|corners theme|rounded|sharp|opacity opaque|glassy|one-window-ratio on|off, animations on|off, layout dwindle|scrolling|floating, font list|ID|install ID, background list|set NAME_OR_PATH|next|random. Bad usage exits 2, an unknown or not-installed font or image exits 4. All take --dry-run and --json.
  • State is ~/.config/bxrig/appearance.json; every choice is remembered, so apply re-pushes it (after a Noctalia upgrade or on a new session).
  • Noctalia changes go through noctalia msg config-set PATH VALUE (TOML values) on the starter's bar main, [dock], [shell], [widget.clock] and [widget.battery]; show/hide/toggle and wallpapers use bar-*, dock-*, wallpaper-*. Without Noctalia the choice is saved and reported as "saved only", not an error.
  • Hyprland window looks are one generated file, ~/.config/bxrig/theme/look.lua, written through the config service (a file you edited is never overwritten) and loaded by the managed bxrig.lua; it is applied with hyprctl reload. floating runs layout float.
  • Fonts are the 7 Nerd Fonts we verified; setting one updates Noctalia and every terminal starter you have not edited (your edited terminal configs are kept and reported).
  • Menu: Appearance has Font, Install a font, Background, Bar, Dock, Windows, Animations, Status and Re-apply beside the theme entries.
  • Bar foundation (P1a, 2026-11-17, DESKTOP-DECISIONS.md and the layout v3 mock-up): bar layout minimal|standard|dense|status, dock on|off|toggle|status, appgrid launchpad|terminal|status, battery-percent on|off|status and time format [FORMAT|default] are settings (act at once, --dry-run, --json, exit 2 for bad words). Unlike the verbs above they do not use config-set for the bar: BarSettings renders ~/.config/noctalia/config.toml (NoctaliaConfig.configToml) through the config service (backup, journal) and runs noctalia msg config-reload. The one gate: a config.toml with changes of your own is a plan (exit 2) until --yes; the theme mode and wallpaper in the file are kept. dock on|off and battery-percent also config-set the same key so Noctalia's own layer (which wins over the file) agrees with the file. The saved keys are bar.layout, bar.battery_percent, bar.time_format, dock.mode (off means the dock is off) and the top-level appgrid. dock toggle now flips the saved dock on or off; the runtime verbs are dock show|hide. The terminal app grid is only stored (nothing draws it yet). The battery widget is written only when /sys/class/power_supply/BAT* exists (util/Battery, the wizard's power-question detection). The logo and grid plates are assets/icons/plates/* (SVG and PNG), written to ~/.local/share/bxrig/plates/ by assets install and by the bar commands.
  • Verified: tests/appearance-test.sh with fake noctalia, hyprctl, fc-list, pacman and sudo. Not verified on a real machine: Hyprland Lua dofile and reload, Noctalia config-set persistence and key names.

13.36 Display and the developer defaults (decided with the owner 2026-11-13)

  • bxrig display list|status, scale NAME auto|0.5..4, rotate NAME 0|90|180|270, mode NAME preferred|WxH[@R], position NAME auto|XxY, mirror on|off, laptop on|off, brightness up|down|set N, apply, reset. Bad usage exits 2, an unknown monitor or a missing tool exits 4. All take --dry-run and --json.
  • Hyprland: one generated file, ~/.config/bxrig/theme/monitors.lua (a list of hl.monitor tables), written through the config service and loaded by the managed bxrig.lua after your own hyprland.lua; then hyprctl reload. Names come from hyprctl monitors all -j. Plasma: kscreen-doctor output.NAME.scale.X|rotation.left|position.X,Y|mode.WxH@R|enable|disable (90 maps to left, 180 to inverted, 270 to right; unverified on a real machine). State is ~/.config/bxrig/display.json.
  • Mirror shows the laptop panel on every external monitor. Laptop off refuses when it would leave no monitor on. Brightness up and down use noctalia msg brightness-up|down when Noctalia is there, else brightnessctl set 5%+|5%-; set N uses brightnessctl.
  • Not built: laptop auto (clamshell on lid events). Lid behavior belongs to bxrig power.
  • Menu: Setup > Display. Verified: tests/display-test.sh (fake hyprctl JSON, kscreen-doctor, brightnessctl, noctalia).
  • Developer defaults: Meld (pacman, extra, verified) is a default of the editors profile.

13.37 Power (decided with the owner 2026-11-13)

  • bxrig power status|profile|lid|hibernate|charge-limit|setup|doctor. profile [performance|balanced|saver] uses powerprofilesctl get|set (saver is power-saver).
  • status --json (2026-11-17, the Power panel reads it): data.battery[] has one entry per BAT* with name, percent, status, state (charging|discharging|full|not_charging|unknown), watts (power draw), time_remaining_minutes (to empty when discharging, to full when charging), health_percent (full over design capacity), cycles, charge_limit and charge_limit_supported. A number the battery does not report is -1. The rest of data: on_ac (a Mains or USB-C supply is online), profile, lid (default|suspend|hibernate|lock|ignore|mixed|custom), lid_battery, lid_ac, charge_limit_supported, power_profiles_daemon, upower. Values come from sysfs (energy_now/power_now or charge_now/current_now, *_full, *_full_design, cycle_count).
  • lid [battery|ac] suspend|hibernate|lock|ignore writes the logind drop-in /etc/systemd/logind.conf.d/50-bxrig-lid.conf with sudo install -Dm644: HandleLidSwitch is the action on battery, HandleLidSwitchExternalPower the action on AC power, HandleLidSwitchDocked=ignore. Without battery or ac both get the action. The side that is not named keeps its value, or suspend (the systemd default) when there is no drop-in, and both lines are always written so the AC line never follows the battery one by accident. It is a plan (exit 2) without --yes, and logind reads it from the next login or reboot (logind is not restarted: that would end the session). A plan for hibernate warns when hibernation is not ready.
  • hibernate [--yes] runs the readiness checks first and exits 4 with the reasons when one fails: disk swap at least the size of RAM (/proc/swaps, zram does not count), resume= (and resume_offset= for a swap file) on the kernel command line, and the kernel offering the disk state (/sys/power/state) without secure boot lockdown (/sys/kernel/security/lockdown). Ready: a plan (exit 2) until --yes, then systemctl hibernate --no-block (without --no-block the call would wait until the machine wakes up). The initramfs resume hook cannot be read reliably and is not checked. doctor shows the same checks as hibernation (swap), resume and hibernate-kernel.
  • charge-limit [PERCENT|off|status] [--yes] uses the kernel attribute charge_control_end_threshold of each BAT* (Linux ABI sysfs-class-power: "a battery percentage level, above which charging will stop"; 0 to 100, drivers round to what the hardware supports). PERCENT is 40 to 100. It writes /etc/systemd/system/bxrig-charge-limit.service (a oneshot that writes the value at boot and after suspend, hibernate and hybrid sleep, because some firmware resets it) with sudo install, then daemon-reload, enable --now and restart. off (or 100) disables and removes the unit and writes 100 to the attribute. status is information (exit 0, supported, limit, persisted). On a laptop whose battery has no such attribute PERCENT and off exit 4. A plan (exit 2) without --yes. Not verified on real hardware (the fake sysfs of power-test.sh only).
  • setup installs and enables power-profiles-daemon and upower (sudo pacman -S --needed --noconfirm, sudo systemctl enable --now). On a machine without a battery it does nothing (exit 0, skipped: "no battery") unless --force. The init plan has an optional power-setup step behind the answer power_setup; no wizard question exists yet.
  • doctor checks battery, the two daemons, the lid action, zram, and (laptops only) the hibernation checks and whether the battery has a charge limit. Problems are reported, never fixed silently.
  • Not built: configuring hibernation (resume offset, initramfs hook) and TLP; battery display and brightness stay with Noctalia and powerdevil. CachyOS ships no laptop power tooling (cachyos-settings pulls zram, ananicy, inxi, iw, wireless-regdb), so this is ours.
  • Menu: Setup > Power. Verified: tests/power-test.sh (fake sysfs, /proc/swaps, command line, /sys/power, lockdown, meminfo, powerprofilesctl, systemctl, sudo, pacman). Not verified on a real laptop.

13.65 Input devices: Apple Magic and Logitech (decided with the owner 2026-11-17)

  • bxrig input status|offer|apple|logitech|undo|doctor|gestures. doctor and gestures are the older commands of 13.29 and keep working. The rest is bxrig.Input; detection is bxrig.InputDevices.
  • Detection needs no root and no external tool. It reads /sys/bus/hid/devices (uevent: HID_ID = bus, vendor, product; HID_NAME; the bus is 0005 Bluetooth, 0003 USB), then /sys/class/input for what the HID scan missed, then bluetoothctl devices (paired devices that are not connected now) and upower (a battery the kernel did not give), when those tools exist. A device is Apple when the vendor is 05AC and the name has "Magic" in it (the Mac's own keyboard is not listed), Logitech when the vendor is 046D. No product id is hard-coded. Kinds, from the name (a guess): apple-mouse, apple-trackpad, apple-keyboard, logitech-mouse, logitech-keyboard, logitech-receiver, other. A receiver's several HID interfaces collapse into one row. Battery comes first from the kernel (power_supply/*/capacity under the HID device), then upower; -1 is unknown.
  • Drivers (hid_magicmouse, hid_logitech_dj, hid_logitech_hidpp) are loaded, built-in, available (modinfo finds it) or absent: /sys/module/NAME/initstate exists only for a loaded module, a module directory without it is built in, and /sys/bus/hid/drivers/DRIVER means the driver is registered. lsmod is not used: it never lists a built-in driver (the old doctor said "not loaded" for one).
  • status [--json]: data.devices[] (id, name, kind, vendor, vendor_id, product_id, transport, battery, battery_status, battery_source kernel|upower, connected, source hid|input|bluetooth, gaming), data.drivers, data.helpers (solaar, piper, libratbag (the ratbagd program), libinput-gestures, upower: on the PATH or the package installed), data.missing, data.detected. Exit 0.
  • offer [--for=detect|apple|logitech|both|none] [--yes] [--dry-run] [--json] plans the install of what the devices call for, through the Resolver and the Installer (one sudo pacman -S --needed --noconfirm for the official packages, yay for AUR ones). Logitech detected: solaar (the Linux Logi Options+; installs a udev rule with uaccess), plus libratbag and piper when a mouse is a gaming mouse by its name (G-series, G Pro, Superlight, Lightspeed or "Gaming": the plan says it is a guess). Apple detected: libinput-gestures (AUR) when a Magic Trackpad is found or --for=apple is given and the desktop is not Plasma (swipes only; a Magic Mouse has no touchpad gestures here), and upower for the battery. --for replaces detection: detect is the default. logiops is not offered (owner decision). Without --yes it is a plan (exit 2); --dry-run exits 0; nothing to offer, or everything installed, exits 0. What it installed is remembered in ~/.local/state/bxrig/input-helpers.json.
  • undo [--yes] [--dry-run] removes only the packages offer installed (sudo pacman -Rns --noconfirm; your settings in ~/.config stay) and the modprobe.d file apple wrote (sudo rm -f). A plan until --yes; exit 4 when there is nothing recorded.
  • apple [--scroll-speed=N] [--yes] [--dry-run] [--json]: the devices, the driver state, the Bluetooth service, upower, and the module options the kernel shows in /sys/module/hid_magicmouse/parameters (scroll_speed, scroll_acceleration, emulate_scroll_wheel, emulate_3button). Exit 4 when the kernel has no hid_magicmouse driver (the report is still printed). --scroll-speed=N takes a whole number from 0 to 63 (the range param_set_scroll_speed accepts in drivers/hid/hid-magicmouse.c, kernel default 32; anything else is exit 2) and writes /etc/modprobe.d/bxrig-magicmouse.conf (options hid_magicmouse scroll_speed=N) with sudo install -Dm644: a plan (exit 2) until --yes. It applies the next time the module loads (reconnect or reboot). A built-in driver does not read modprobe.d: the plan and the result then say to add hid_magicmouse.scroll_speed=N to the kernel command line. A file with that name that BxRig did not write is never replaced (exit 8). Nothing else is written, and no sysfs value is changed.
  • logitech [--json]: receivers and devices (with battery), the two Logitech drivers, whether 42-logitech-unify-permissions.rules (shipped by the solaar package) is installed, and, when Solaar is installed, solaar show (the lines of the form 1: NAME are counted as paired devices: the layout of Solaar's text is not verified). Exit 0.
  • No gesture writer. Hyprland's native gesture syntax changed between versions (0.51 keys, the Lua config since 0.55) and is not verified here, so gestures stay with libinput-gestures (input gestures, 13.29). Plasma has its own touchpad gestures in System Settings.
  • Wizard: the Input page asks input_devices (detect default, none, apple, logitech, both); it is shown only when a relevant device is detected or the Mac-style keys are on. The init plan adds the optional step input-devices: bxrig input offer --for=CHOICE --yes (nothing for none).
  • Not verified on real hardware: Magic Trackpad 2, Magic Mouse 2 (and USB-C), an MX Master. Verified with a fake sysfs and fake tools in tests/input-test.sh, tests/input_devices_test.bxs and tests/macextras-test.sh. Unverified facts (see the research page): that upower shows these batteries (the kernel's own power_supply is read first), that Solaar, libratbag and logiops do not conflict on one device (use one tool per device), whether hid_magicmouse is built in on CachyOS kernels, Plasma gesture paths.

13.38 Time zone (decided with the owner 2026-11-13)

  • bxrig time status|zone|sync|auto|ntp. zone shows the zone, zone --list lists them, zone ZONE sets it (sudo timedatectl set-timezone, validated against timedatectl list-timezones; exit 4 for an unknown one). sync sets the zone once from your IP address with tzupdate (AUR, installed first when missing): the command to run after you land. ntp on|off is timedatectl set-ntp. Everything that changes the system is a plan (exit 2) without --yes.
  • auto on|off|status follows your location by itself. It installs geoclue (extra) and automatic-timezoned (AUR, 2.0.163). The AUR package ships no systemd unit and the daemon needs GeoClue to run without an agent (its README), so auto on writes /etc/systemd/system/automatic-timezoned.service (runs as root, which may set the zone without a polkit rule) and /etc/geoclue/conf.d/90-bxrig-timezone.conf ([agent] whitelist= empty; [automatic-timezoned] allowed, system, any user), then systemctl enable --now. auto off disables the service and removes both files. The plan states the privacy tradeoff: GeoClue looks up your location online (Wi-Fi networks or IP address).
  • Not verified on a real machine: the geoclue drop-in being read from conf.d, the daemon getting a location without an agent, and tzupdate flags (we run it with none). If the zone does not change, journalctl -u automatic-timezoned.
  • time format [FORMAT|default] (2026-11-17) is the bar clock's text: Noctalia date format tokens (a {:%H:%M} field is unwrapped; text without a % is read as a MMM d - HH:mm pattern), default %b %-d - %H:%M ("Nov 5 - 04:00"). It is an appearance-style setting (acts at once, --dry-run) and rewrites the Noctalia config through BarSettings; the bxrig/clock plugin reads it as its format setting.
  • Menu: Setup > Time. Verified: tests/time-test.sh (fake timedatectl, systemctl, sudo, pacman, yay, tzupdate).

13.39 Toggles, DNS, kernels and security (decided with the owner 2026-11-13)

  • bxrig toggle stay-awake [on|off] runs noctalia msg caffeine-enable|disable|toggle (Noctalia IPC docs). Without Noctalia it exits 4 (on Plasma use System Settings > Power Management). Stay awake holds the screensaver and the lock off too (both are Noctalia idle behaviors, 13.66).
  • bxrig dns [cloudflare|google|quad9|dhcp|custom IP[,IP...]] lists or sets the DNS servers of the active NetworkManager connections (loopback, bridge, tunnel and container devices are skipped) with nmcli connection modify NAME ipv4.dns ... ipv4.ignore-auto-dns yes ipv6.dns ... ipv6.ignore-auto-dns yes, then connection up NAME. dhcp clears them. A plan (exit 2) without --yes; a bad IP exits 2.
  • bxrig kernel list|install NAME|remove NAME. list shows the running kernel, the installed kernel packages and the linux-cachyos* kernels you could add (nvidia, zfs, rc and headers packages are left out). install is sudo pacman -S --needed NAME NAME-headers (the name must match linux(-[a-z0-9]+)* and exist in the repos, else exit 4 or 2). remove refuses the running kernel (judged from uname -r and the package suffix) and the last installed kernel (exit 4). It never edits the bootloader and never picks the default: the boot entries come from the kernel packages' hooks and you choose in the boot menu.
  • bxrig security status|fingerprint|fido2|ssh-server|passwordless-sudo. Guards: only /etc/pam.d/sudo is ever changed (never login, SDDM or the lock screen); the line is auth sufficient pam_fprintd.so or auth sufficient pam_u2f.so cue inserted before the first auth line and marked with a # bxrig KIND comment, so your password still works without the reader or key; a file with no auth line is left alone (exit 4); the original is kept once as /etc/pam.d/sudo.bxrig-backup; off removes exactly the marked line; running on twice adds one line. fingerprint enroll runs fprintd-enroll; fido2 register runs pamu2fcfg into ~/.config/Yubico/u2f_keys, and fido2 on refuses (exit 4) until that file exists. passwordless-sudo on writes /etc/sudoers.d/50-bxrig-nopasswd (USER ALL=(ALL:ALL) NOPASSWD: ALL, user from $USER` and checked against `^[a-z_][a-z0-9_-]*$) only after visudo -cf passes, with mode 440; off removes it. ssh-server on|off installs openssh and runs systemctl enable|disable --now sshd.service. Everything is a plan (exit 2) without --yes, and --dry-run prints the exact line or file.
  • Agents: the Agent menu runs ai launch NAME; there is no separate agent command.
  • Menu: Trigger > Toggle (stay awake), Setup > DNS, Security, Time, Kernel. Verified: tests/tweaks-test.sh and tests/security-test.sh (fake nmcli, pacman, noctalia, uname, visudo, sudo and fake /etc/pam.d and /etc/sudoers.d). Not verified on a real machine: PAM behavior with a real reader or key, nmcli on your connection names, kernel removal.

13.40 The command reference and bxrig help (decided with the owner 2026-11-13)

  • One source: docs/reference/cli.json holds, for every command, its group, a one-sentence summary, its usage lines, examples, whether it needs --yes (mutates) and an optional note. bootstrap/gen-docs.sh writes docs/reference/commands.md (the docs page: flags, exit codes, the JSON envelope, an index by group, then every command with usage and examples) and src/bxrig/HelpData.bx (the same data inside the binary).
  • bxrig help (and bare bxrig) lists every command by group with its summary; bxrig help NAME prints the summary, usage, whether --yes is needed, examples and notes; --json returns the same data; an unknown name exits 2.
  • Drift checks: gen-docs.sh --check fails when a command in src/Main.bx has no entry, an entry has no command, a usage line does not start with its command, an example names no real command, a summary does not end in a full stop, or the text contains an em dash. The usage lines of older commands are copied from the usage text in src/Main.bx; the newer classes (appearance, display, power, time, toggle, dns, kernel, security) print their own usage, so their entries are written by hand and must be updated with the class.
  • Verified: tests/help-test.sh (the groups, a command, JSON, unknown, and that the generated files are current).

13.41 NAS as a first-class namespace (decided with the owner 2026-11-13)

  • bxrig nas keeps every NAS you use in ~/.config/bxrig/nas.json (name, host, protocol smb or nfs, user, optional SMB version, and the shares you mounted). discover browses the network with avahi-browse -rtp _smb._tcp and _nfs._tcp (IPv4 only). setup installs cifs-utils nfs-utils smbclient avahi nss-mdns rsync and enables avahi-daemon (a plan without --yes; every tool was checked in the Arch repos and its binary exists after install).
  • add NAME --host=H needs --user and a password for SMB (--ask-password, typed hidden, or --password-file=F); the password goes to the keyring as BXRIG_NAS_<NAME>_PASSWORD and never into nas.json. NFS needs neither. Names are ^[a-z][a-z0-9-]{0,30}$.
  • shares NAME lists SMB shares with smbclient -g -L HOST -A AUTHFILE (the auth file is a private temp file, deleted after; no password on a command line; IPC$ and other hidden shares are dropped) or NFS exports with showmount -e --no-headers.
  • mount|unmount NAME SHARE mounts at ~/NAS/NAME/LEAF (BXRIG_NAS_HOME overrides) with sudo mount -t cifs|nfs; the SMB options are credentials=/etc/bxrig/nas/NAME.cred,uid,gid,iocharset=utf8,file_mode=0600,dir_mode=0700 plus vers= only when you set one (otherwise the kernel negotiates the highest version both sides support). The credentials file is root-only (mode 600) because mount.cifs reads it as root; the plan says so.
  • auto on|off NAME SHARE writes <escaped-path>.mount and .automount units to /etc/systemd/system (Options=...,nofail, TimeoutSec=20, TimeoutIdleSec=600, wanted by multi-user.target), runs daemon-reload and enable --now, so a sleeping NAS never blocks login. off disables and removes them; a NAS with automatic mounts is not removed (exit 4) until they are off.
  • test NAME [SHARE] checks: reachable (TCP 445 or 2049), signed in or exports readable, mounted (findmnt), writable (a probe file), free space. Exit 4 when a check fails.
  • sync NAME SRC --to=SHARE[/PATH] is a plain rsync -a mirror to a mounted share. Nothing is deleted from the NAS unless you add --delete, and the plan says so in capitals.
  • use NAME SHARE [--path=bxrig-backup] records targets.nas-NAME in ~/.config/bxrig/backup.json ({type: nas, nas, share, path}); backup data setup reads it.
  • Verified: tests/nas-test.sh with fake avahi-browse, smbclient, showmount, findmnt, rsync, sudo and a fake /etc. Not verified on a real Synology: DSM share permissions, SMB signing, NFS export options, nss-mdns name resolution.

13.42 refresh and reinstall (decided with the owner 2026-11-13)

  • No factory reset. bxrig refresh COMPONENT puts managed config back to what BxRig ships and never installs a package. Components: hyprland (runs keys apply, appearance apply, display apply; with --starter also the starter hyprland.lua), noctalia (theme set CURRENT, appearance apply, noctalia msg config-reload; with --starter also the Noctalia starter files), terminals (the starter config of each installed terminal, then the theme includes), shell (starship.toml, the shell init and the line in .zshrc or .bashrc), nvim (editor refresh), theme (theme set CURRENT, appearance apply), all, and list.
  • Semantics are the config service's: a clean file is left alone, a missing or outdated one is written, a file you edited (drifted) is kept and reported, and --force overwrites it after a backup (config history, config restore). A link or special file in the way blocks (exit 8 in the service, shown as blocked). Without --yes it prints the plan and exits 2; --dry-run exits 0.
  • reinstall is init --rerun: the way to install packages again.
  • Verified: tests/refresh-test.sh (temp home, fake bxrig that logs the commands, a fake terminal): plan and dry run write nothing, files are written, a second run rewrites nothing clean, edits are kept, --force overwrites and takes a backup, each component runs its commands.

13.43 Backups: the config layer (decided with the owner 2026-11-13)

  • Three layers, one command. bxrig backup config (your BxRig setup), backup snapshots (the system, Btrfs with snapper) and backup data (your files, restic) are built in that order; backup send and backup export move any of them, and timemachine shows them all. This section is the config layer; the others are added below as they land.

  • A snapshot is ~/.local/share/bxrig/backups/config/ID.tar.gz (mode 600) plus ID.json. ID is yyyyMMddTHHmmss (with -xxxx when two land in the same second). Inside: files/ (paths under your home), packages.txt (pacman -Qqe), foreign.txt (pacman -Qqm), meta.json, and secrets.bxs only with --with-secrets (the output of bxrig secrets export, encrypted with a passphrase you type).

  • What is tracked (under your home): .config/bxrig, hypr, noctalia, ghostty, kitty, foot, alacritty, starship.toml, nvim, btop, fish, git, mimeapps.list, xdg-terminals.list, .zshrc, .bashrc, .gitconfig, .ssh/config. backup config add|remove PATH changes the list (stored in backup.json); SSH keys, gnupg, .. and absolute paths are refused. .git, node_modules and *.log are skipped.

  • Restore shows a plan (which files are created or replaced; exit 2 without --yes), takes a safety snapshot of the present first, then copies the files back (--only=PATH limits it). --packages installs the explicit packages that are missing and exist in the repositories with sudo pacman -S --needed --noconfirm; AUR and local ones are listed for yay, never installed from here. diff ID compares a snapshot with now (files same, changed, missing, and missing packages).

  • Automatic: auto is on by default. Before update apply, system update, init, reinstall and refresh (with --yes, never --dry-run) a snapshot is taken quietly, with the reason before <command>; it never stops the command. The newest 30 are kept (prune --keep=N).

  • Verified: tests/backup-config-test.sh (temp home, fake pacman, sudo and bxrig). Not verified: a restore on a different machine.

  • backup snapshots (system snapshots). Btrfs root: snapper. setup [--home] installs snapper snap-pac (and grub-btrfs only when GRUB is in use), creates the root config (snapper -c root create-config /; --home adds /home), sets the timeline to 5 hourly, 7 daily, 2 weekly, 1 monthly, 0 yearly (snapper set-config TIMELINE_*), and enables snapper-timeline.timer and snapper-cleanup.timer (and grub-btrfsd.service). snap-pac takes a snapshot before and after every pacman transaction through its own hooks. Other filesystems: it installs Timeshift (rsync mode), which takes full copies and needs one visit to its window to pick a disk. list reads snapper --jsonout -c CONFIG list (snapshot 0, the live system, is left out); create [--description=T] is snapper create --description T -p; delete ID; changes ID is snapper status ID..0; restore ID PATH is snapper undochange ID..0 PATH (files changed since are replaced, files that did not exist then are removed, so the plan says so). There is no automatic whole-system rollback: rolling back a Btrfs root depends on your subvolume layout, so you boot the snapshot from the GRUB menu and follow the Arch wiki, or restore folders with restore. Everything that changes the system is a plan without --yes. Not verified on real Btrfs: the JSON shape of snapper --jsonout list (the parser accepts a bare array or an object holding one array), the timers, undochange. Tested with fakes in tests/backup-snapshots-test.sh.

  • backup data (your files, restic). A target is a place a restic repository lives: local (a path), nas (made by nas use, at ~/NAS/NAME/SHARE/PATH), sftp (sftp:user@host:/path; port as sftp:-p N user@host:/path), rest (rest:URL), s3 (s3:ENDPOINT/BUCKET/PATH, AWS when no endpoint; works for DigitalOcean Spaces, Wasabi, MinIO), b2 (b2:BUCKET:PATH), azure (azure:CONTAINER:/PATH), gs (gs:BUCKET:/PATH, with GOOGLE_PROJECT_ID and GOOGLE_APPLICATION_CREDENTIALS as the project and the service-account file) and rclone (rclone:REMOTE:PATH; FTP and any rclone service). The environment variable names (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION, B2_ACCOUNT_ID, B2_ACCOUNT_KEY, AZURE_ACCOUNT_NAME, AZURE_ACCOUNT_KEY, RESTIC_REST_USERNAME, RESTIC_REST_PASSWORD) and the address forms were read from restic's own documentation; the flags used (-r via RESTIC_REPOSITORY, backup --tag --exclude --exclude-caches --one-file-system, forget --keep-daily|weekly|monthly --prune, snapshots --json, ls --json, restore --target --include, check --read-data-subset) from the installed restic 0.19.1.

    • Keys go straight to the keyring (target add ... --ask-keys, typed hidden, or --keys-file with KEY=VALUE lines) as BXRIG_BACKUP_<TARGET>_<KEY>; the repository password is generated at init (24 random bytes, hex) and kept as BXRIG_BACKUP_<TARGET>_PASSWORD, with a reminder that losing it loses the backups. restic is started with these in its environment, never on a command line, and no key is written to backup.json.
    • run backs up the include list (default Projects code dev Documents .ssh, only the ones that exist) skipping the exclude list (default node_modules target .gradle __pycache__ .venv venv .cache .next *.tmp) and cache folders, on one filesystem, tagged bxrig; list, files, restore ID --to=DIR [--include=PATH] (into a folder you name, never over your files by itself), verify [--deep] (restic check, --read-data-subset 5%), forget (retention 7 daily, 4 weekly, 6 monthly by default, retention changes it; deletes older backups for good, so it is a plan first), schedule hourly|daily|off (user units bxrig-backup.service and .timer: ConditionACPower=true so it skips on battery, Persistent=true to catch up, a random delay up to 15 minutes; a failed scheduled run sends a Noctalia or notify-send notification). An unmounted NAS share exits 4 with the nas mount command.
    • Verified: tests/backup-data-test.sh with a fake restic that records its arguments and the variables it was given. Not verified against a real cloud account, NAS or restic repository in this environment.
  • backup send and backup export (moving backups). send ID|all --to=TARGET [--from=TARGET] is restic copy into a second repository (a NAS and a cloud bucket, for a 3-2-1 setup): the destination is RESTIC_REPOSITORY, the source goes in RESTIC_FROM_REPOSITORY with RESTIC_FROM_PASSWORD_COMMAND=printenv BXRIG_FROM_PW, so no password is on a command line. restic reads one set of AWS_*, B2_* ... variables, so two repositories that need different values for the same variable (two S3 accounts) are refused (exit 4) with a pointer to rclone sync. export data ID --to=FILE is restic dump --archive tar|zip --target FILE ID PATH (zip when the name ends in .zip; --path limits it to a folder; an existing file is never overwritten), export config ID --to=FILE.tar.gz copies a config snapshot out as one file. Config snapshots travel with the data backups: ~/.local/share/bxrig/backups/config is in the default include list, so a NAS or cloud target protects them with no extra step. System snapshots are not exportable. Tested in tests/backup-move-test.sh with a fake restic.

13.44 BxTimeMachine, the backup screen (decided with the owner 2026-11-13)

  • bxrig timemachine [--demo] [--local] (also bxrig bxtimemachine) is BxTimeMachine, a full-screen terminal UI on MatchBox's canvas (the same one as the wizard) over bxrig backup timeline [--json] [--local], which lists every backup in one structure: rows system (snapper), config (config snapshots), files-NAME (one per data target, from restic snapshots --json) and mirror-NAME (recorded nas sync runs). A point is { id, time, epoch, label, tier, size }; tier is by age (hourly up to a day, daily to a week, weekly to 5 weeks, monthly to a year, yearly after). A target that fails is a row with an error (unreachable, not initialized, NAS not mounted), never a failure of the whole timeline; --local leaves out the targets that need the network so the screen opens at once. BXRIG_TIMELINE_FILE injects a timeline (tests); BXRIG_NOW_EPOCH fixes the clock.

  • The screen: places as rows over a time axis (newest on the right; zoom 1 day, 1 week, 1 month, 3 months, 1 year, all; the axis grows to keep the chosen backup in view), points coloured by tier, a guide line through the chosen moment, the chosen backup as a card with the older ones stacked behind it, counts by tier for the place, and the brand gradient with Powered by BoxLang. Keys: left and right (or h l) through time, up and down (k j) between places, plus and minus zoom, enter open, d diff, r restore, e export, s send, n back up now, / filter in the browser, ? help, q or esc leave; the mouse picks a point, a place or a zoom chip and the wheel moves through time. Under 90 by 30 cells it asks for a bigger window.

  • What it runs: it only runs bxrig commands, and every change goes through a plan first: it runs the command with --dry-run, shows the plan, and runs it with --yes only on y. Open: backup data files ID --json, backup config show ID --json or backup snapshots changes N. Restore: backup data restore ID --to=~/Restored/ID [--include=PATH], backup config restore ID [--only=PATH] or backup snapshots restore N PATH (a folder must be picked first). Export: backup export data|config. Send: backup send ID --from=PLACE --to=PLACE (file backups only; a destination picker). Back up now: backup data run, backup config now or backup snapshots create. Config snapshots reach a NAS or the cloud through the data backups (they are in its include list).

  • --demo shows a made-up timeline (every kind of place and every tier) and runs nothing: plans and results say what the command would have been. tools/record-timemachine.py records the demo in a pseudo-terminal (pyte, Pillow, ffmpeg) into named screenshots and a video.

  • Verified: tests/time_machine_test.bxs (the model, the keys and intents, the date maths, and what each screen shows via render_to_string) and tests/timeline-test.sh. Not yet tried: against real restic repositories, a real NAS or snapper on Btrfs; with a real terminal beyond the recorded demo.

  • backup status [--json] (read only, for the System bar panel): { now, health, warn_count, rows } with one row per kind in the order config, system, data: { id, label, kind, tool, configured, count, last, last_epoch, last_ago, next, next_epoch, size, size_text, health, note, action, action_text } (data adds targets and schedule). Derived from the existing layers: BackupTimeline.configRow and systemRow, BackupConfig.readSettings (auto), BackupSnapshots (tool, configs, the snapper timeline timer), BackupData.readAll (targets, schedule and data.runs, the last success and last failure backup data run records per target in backup.json) and Systemd.nextRun (show --property=NextElapseUSecRealtime --timestamp=unix --value). Health: ok within the limit and no failure; warn older than the limit (config 30 days; system 2 days with the timeline timer on, else 14; data 6 hours hourly, 2 days daily, 14 days off), the last run failed, the scheduled unit failed or restic is missing; none nothing to judge. size is bytes (config snapshots only, else 0). action is the argv words that back it up now, [] when not possible: the commands that already exist (backup config now, backup snapshots create --yes, backup data run --all --yes), so there is no backup now. Exit 0. The time maths moved to util/Clock.bx (BackupTimeline forwards to it, so BackupData can stamp a run without a class cycle). Tests: tests/backup-status-test.sh, backup_status_test.bxs.

13.45 The backup pages of the wizard (decided with the owner 2026-11-13)

  • The wizard has three pages after Containers, in this order: NAS (nas_use, nas_name, nas_host, nas_protocol, nas_user, nas_share, nas_auto), Remote backups (remote_type none, s3, b2, azure, gs, sftp, rclone or local, with remote_name, remote_endpoint, remote_bucket, remote_region, remote_container, remote_project, remote_credentials, remote_host, remote_user, remote_remote, remote_path) and Backups (backup_layers: config, snapshots, data; backup_schedule: daily, hourly, off). The old tools-only backups question is gone; restic is installed when files are protected.
  • No secret is in an answer. The plan steps are commands that ask for them in the terminal while the setup runs: nas add ... --ask-password (SMB) and backup data target add ... --ask-keys (S3, B2, Azure). Every NAS, target and schedule step is optional, so a missing network or a wrong password never stops the rest of the plan. Steps in order: nas-setup, nas-add, nas-mount, nas-auto, nas-use; backup-remote; per place backup-init-PLACE, backup-default, backup-schedule; backup-snapshots; backup-config-off when the config layer is not chosen.
  • backup data run --all (used by the schedule) backs up every place that is set up; backup data default NAME chooses the place used without --target.
  • Verified: tests/init_plan_test.bxs (the steps for a Synology over SMB, NFS, S3, Google, a disk, a missing address) and the wizard tests (13 pages in Basic mode).

13.46 The TUI kit and the Control Center (decided with the owner 2026-11-13)

  • Kit (TuiKit, TuiList, TuiRunner): every terminal screen paints with one kit (palette, text, gradient, panels, click regions, tabs, scrolling list, modal and plan box, toast, key bar, meter, badge, sparkline), keeps list state in TuiList (cursor, scroll, filter) and runs through TuiRunner (one loop that always restores the terminal). The wizard and BxTimeMachine use it; their tests did not change.
  • Command: tui [PAGE] [--demo] [--json]. Without --json it needs a terminal (exit 4 without one). --json prints the page's data ({ data, attention, cursor }) and exits 0; an unknown page or more than one word exits 2. --demo uses made-up data and runs nothing.
  • Page interface: a class with id() title() load() keys() paint( kit, x, y, w, h, tick, phase ) onKey( key ) act( hit ) onScroll( dir ). A key, click or scroll returns an intent: {}, { action: "goto", page }, { action: "launch", target } (leave and run that screen, then come back to the same page) or { action: "cli", title, args }. A cli intent first runs the command with --dry-run and shows the output as the plan; only y runs it with --yes, and the result box follows.
  • Keys: Tab and Shift+Tab (or ] and [) change page, Left moves to the sidebar, Right or Enter returns, q, Escape and Ctrl+c leave.
  • Dashboard (built): needs attention (updates from checkupdates when installed, backups older than 2 days or none, disk 85% or more, battery 20% or less and not charging), system meters (/proc, df, /sys/class/power_supply, BXRIG_POWER_DIR), machines (db list --json and vm list --json) and backups (the timeline, --local). Every part is read alone; a part that fails is left out. BXRIG_DASHBOARD_FILE (a JSON file) replaces the machine for tests.
  • Table pages (ListPage with a provider: id title columns load( query ) actions detail style hint live emptyText): BoxLang (bvm list, bvm current, read leniently: every version number on a line, a * or (current) marks the active one; unverified against a working bvm), Java (bxrig java list), Versions (BoxLang, MatchBox, Java, Node; Enter opens the deep page), Ports (ss -ltnpH and ps; one row per port and pid; two owners on a port is a conflict), Packages (live pkg search), Shortcuts (keys show), Machines (VMs only: vm list), Databases (db list), Storage (nas list, cloud status), Secrets (secrets list, a value only through secrets get --show), Themes (theme list) and Logs (journalctl -b -o json -p, priority cycles error, warning, info). Keys compare exactly (K is not k). While a page takes text (a filter or a search) it gets every key, including q and Escape.
  • More intents: { action: "exec", title, argv, plan } (a plan you wrote, then the program), { action: "show", title, args } (run bxrig ARGS at once and show the output; only for reads), { action: "ask", title, prompt, make } (a text box; make( value ) returns the next intent) and { action: "reload" }.
  • Icons (2026-11-14): TuiKit.icon( name ) returns a Nerd Font glyph (Font Awesome range, plus e738 for Java; all checked against the Symbols Nerd Font) or "" when icons are off. Pages say which icon they use with icon(). tui --icons=on|off and BXRIG_ICONS decide; otherwise a Nerd Font found by fc-list turns them on. No emoji: their width differs between terminals and breaks the cell layout.
  • Not built yet: BxTimeMachine inside the sidebar (it opens full screen and returns), mise and nvm actions, rebinding with a key-capture.
  • Known MatchBox quirk: reading a missing key of a parsed JSON struct inside a try block in a nested function panicked the native runner while the interpreter did not; the code checks the key first. To be reproduced and reported upstream.

13.47 Java, Maven and Gradle (decided with the owner 2026-11-14)

  • bxrig java (Java.bx): list|available|install MAJOR|default ID|MAJOR [--unset]|remove ID|env [ID]. Homes: ~/.local/share/bxrig/java/ID (BxRig's own Temurin installs from the Adoptium API: /v3/info/available_releases and /v3/binary/latest/MAJOR/ga/linux/x64/jdk/hotspot/normal/eclipse, both checked), SDKMAN (~/.sdkman/candidates/java) and /usr/lib/jvm. Only BxRig's own installs are removed. The default is java.sh and java.fish in ~/.config/bxrig, sourced by the three shell starters. Install and default and remove plan first (exit 2 without --yes). Overrides for tests: BXRIG_JAVA_DIR, BXRIG_JAVA_SYSTEM_DIR, BXRIG_SDKMAN_DIR, BXRIG_ADOPTIUM_API, BXRIG_JAVA_DOWNLOAD_URL.
  • bxrig sdk (Sdk.bx, decided 2026-11-14: SDKMAN is the way to install Java, Maven and Gradle): status|setup|list C|available C|install C V|default C V|remove C V, C is java, maven or gradle. Checked against the real SDKMAN: the version lists come from api.sdkman.io/2/candidates/CAND/linuxx64/versions/list (Java is a vendor table, | Vendor | Use | Version | Identifier |; Maven and Gradle are columns that run down, read column by column) and /candidates/default/CAND; the installer is get.sdkman.io?rcupdate=false, which leaves .bashrc and .zshrc alone; commands run in bash -c with SDKMAN_DIR exported and sdk loaded from bin/sdkman-init.sh; sdk install gets n on stdin (the first install becomes the default by itself, a later one does not), remove is sdk uninstall. Versions are checked against ^[A-Za-z0-9][A-Za-z0-9.+_-]*$ and passed as arguments, never in the script text. Maven and Gradle reach shells through sdk.sh and sdk.fish (PATH and MAVEN_HOME, GRADLE_HOME pointing at each current link); Java stays with java.sh. java install uses SDKMAN when it is installed (a major picks the newest Temurin, an identifier is passed on) and the direct Adoptium download otherwise; java remove of a SDKMAN home runs sdk uninstall. Overrides for tests: BXRIG_SDKMAN_DIR, BXRIG_SDKMAN_API, BXRIG_SDKMAN_INSTALLER.

13.48 The mail catcher (decided with the owner 2026-11-14)

  • Command: mail start [--keep] [--smtp-port=N] [--ui-port=N] [--yes] [--dry-run]|stop|status|remove [--keep-data] [--yes]|list [--limit=N]|show ID|delete ID [--yes]|clear [--yes]|open [ID]|test [--to=ADDR] [--subject=TEXT]|env [--json]. A development inbox: Mailpit (axllent/mailpit) in a container named bxrig-mail, SMTP on 127.0.0.1:1025, web inbox and REST API on 127.0.0.1:8025 (both ports can be changed; ports are 1024 to 65535 and must differ, else exit 4). Everything is bound to 127.0.0.1. The engine is the one db engine chose (podman by default).
  • Thrown away on stop. Without --keep the container runs with --rm and no volume, so stop deletes it and its mail. With --keep it runs with --restart unless-stopped, the folder ~/.local/share/bxrig/mail bind-mounted at /data:Z and MP_DATABASE=/data/mailpit.db, so mail survives stop and start. remove deletes the container and the stored mail; --keep-data keeps the folder. start, remove, clear and delete plan first (exit 2 without --yes, --dry-run exits 0); test, open, list, show, env, stop and status act at once. The ports and keep are remembered in mail/meta.json.
  • Container settings: MP_SMTP_AUTH_ACCEPT_ANY=1, MP_SMTP_AUTH_ALLOW_INSECURE=1 (an app that logs in works with any user and password, no TLS) and MP_MAX_MESSAGES=5000, taken from Mailpit's own Docker example.
  • API used (from Mailpit's swagger): GET /api/v1/messages?limit=N (total, unread, messages[] with ID, From{Name,Address}, To[], Subject, Created, Size, Attachments as a count, Read, Snippet), GET /api/v1/message/{ID} (Text, HTML, Cc, Bcc, Date, Attachments[] with FileName, ContentType, Size), DELETE /api/v1/messages (all, or a body { "IDs": [...] }), POST /api/v1/send (From{Email,Name}, To[{Email}], Subject, Text) and GET /view/{ID}.html (opened with xdg-open). HTTP goes through curl. Without an answer, anything that needs the API exits 4.
  • JSON names differ from the API's on purpose (mid, sender, sender_address, recipient, subject_line, received, bytes, attachment_count, seen, preview; for show: to_list, cc_list, bcc_list, sent, body_text, body_html, files[] with file_name, type, bytes; for test: recipient, subject_line): MatchBox keeps the capitalisation of the first spelling of a key it sees, so a field called id came out as ID after parsing the API's ID. Fields that do not clash (total, unread, smtp, web) keep their names.
  • mail env prints the SMTP settings (host, port, no encryption, no login needed) for a generic list, BoxLang and ColdBox (words only: the exact setting names were not checked), Laravel (.env), Spring Boot, Node (nodemailer) and plain environment variables.
  • Control Center page Mail: table of from, received, size, attachment mark and subject; the detail box shows the headers and the wrapped text body of the highlighted message. d plans mail delete ID, c plans mail clear, o runs mail open ID at once, t runs mail test, r reloads. The page reloads itself every 3 seconds (the provider's refreshSeconds(); ListPage reloads in paint once enough ticks have passed, not while you are typing a filter, and keeps the cursor on the same message by its id). Providers can also say detailLines() (default 2) to get a taller detail box. Demo data under tui mail --demo.
  • Wizard and menu: one yes or no question mail_catcher (default no) after the databases questions; InitPlan adds the optional step mail-start (bxrig mail start --yes), so a missing container engine never stops the plan. Menu: Develop > Mail catcher.
  • Unverified (no container engine here): a real Mailpit container starting from these arguments (bind mount ownership under rootless podman, the :Z label on non-SELinux hosts, whether Mailpit creates mailpit.db in the mounted folder), the Mailpit version's exact response fields beyond the swagger, and the BoxLang and ColdBox mail setting names. Tests use a fake container engine and a local fake of the API paths.

13.49 The rename to BxRig (decided with the owner 2026-11-14)

  • Supported today: CachyOS, Arch Linux, openSUSE Tumbleweed and Slowroll, Ubuntu 26.04 LTS and Debian 13 (2026-11-20, see "Distributions" at the end). Others (Fedora, openSUSE Leap, older Ubuntu and Debian) exit 4.
  • Why: the project is not tied to CachyOS or to Arch, so it is named BxRig. It had not been released under the old name, so this is a plain rename and the old names are gone.
  • One-liner (everywhere): "BxRig brings an opinionated, beautiful and efficient desktop to Linux, built for developers." Longer: "BxRig turns a fresh Linux install into a polished developer rig: a themed desktop, the languages and tools you use, and one terminal screen to manage it all." Tagline: "Your dev rig. Beautiful by default."
  • Names: bxrig (the binary, dist/bxrig, the class folder src/bxrig), BXRIG_* (environment), ~/.config/bxrig, ~/.local/state/bxrig, ~/.local/share/bxrig, ~/Pictures/BxRig, themes bxrig, bxrig-light, bxrig-midnight, bxrig-cyan, bxrig-forest, skills bxrig, bxrig-ai, bxrig-apps, bxrig-desktop, bxrig-install-update, bxrig-system, systemd units and launchers bxrig-*, containers bxrig-* with labels io.bxrig.*, the Hyprland module bxrig.lua, the keyring service bxrig, release assets bxrig-linux-x86_64 and the S3 folder ortussolutions/bxrig/. BxTimeMachine keeps its name.
  • Brand: Brand.bx holds the logo art (large 7 rows, small 3 rows, one line) and the descriptions; TuiKit.logo( x, y, size, phase, bg ) paints it with the brand gradient (cyan #00DBFF to green #00FF78). It is on the wizard welcome screen, the Control Center sidebar and dashboard header, the BxTimeMachine header, version and help at a terminal (24-bit colour unless NO_COLOR), and the installer banner. docs/brand/bxrig-ascii.txt shows every size; assets/build.py draws the mark (a rounded gradient box with Bx) for the icon, the logo and the four wallpapers.
  • Care taken in the rename: a few places measured the old name with a hard-coded length (left( f, 14 ) for bxcachy-cloud-, the X-BxRig-Web= key, the settings archive prefix, the theme origin test); they were found by the test suite and now use the new lengths.
  • Intentionally still named bxcachy: the MatchBox integration branch bxcachy (box.json ref, scripts/dev-build.sh, scripts/get-matchbox.sh, the matchbox workflow and its S3 folder ortussolutions/bxcachy/matchbox: they belong to the MatchBox repository and the owner's bucket); the docs domain bxrig.boxlang.io (the owner moves it); the legacy reference tree artifacts/legacy/ and plan.md history (records of what was). The word CachyOS is factual and stays. The local directory /home/user/bxcachy is unchanged.
  • Only the owner can: point DNS and the docs CNAME at the new domain; check the renamed repository's settings and secrets (the signing secret is BXRIG_SIGNING_KEY); rotate the release signing key if wanted; create the S3 folder and CDN paths; move the MatchBox branch and its S3 folder; claim package-registry names; rename the local checkout.

13.50 One Control Center, one page at a time (decided with the owner 2026-11-14)

  • One namespace: everything in the terminal UI is bxrig tui. tui opens the Control Center on the Dashboard with the sidebar; tui PAGE opens that page alone with the sidebar collapsed; tui list [--json] prints the page ids and titles ({ pages: [ { id, title, icon } ] }). An unknown page or more than one word exits 2. --sidebar and --no-sidebar force the sidebar open or collapsed (the argument parser turns --no-sidebar into sidebar=false, so it is one option and the last flag wins).
  • Pages: ControlCenterPages is the one registry (dashboard, boxlang, java, maven, gradle, versions, ports, packages, shortcuts, machines, databases, mail, storage, secrets, themes, logs, in the order of the sidebar). tui list, the menu, the launchers and the shortcut table all read it, so they cannot drift.
  • Sidebar: \ and Ctrl+b toggle it (while a page is taking text only Ctrl+b does); a click on the left strip or on the breadcrumb row does too; Tab and Shift+Tab still change page; Left on a page expands a collapsed sidebar. Collapsed, the top row shows the breadcrumb BXRIG > Page and the page gets the whole width. Below 90 columns it starts collapsed unless it was forced or toggled. The state is not saved, but it survives opening BxTimeMachine and coming back.
  • Menu: bxrig menu has a last section, Control Center: the first entry opens the whole Control Center, then one entry per page with its icon name; each opens bxrig tui PAGE in the default terminal (detached, the terminal ai launch uses). Without a terminal the entry exits 4.
  • Launchers (opt-in): launchers on|off|status [--yes] [--dry-run] [--json]. on writes ~/.local/share/applications/bxrig-tui-PAGE.desktop per page (Name=BxRig Databases, Icon=bxrig, Categories=X-BxRig; (or X-BxRig-Develop, X-BxRig-System, X-BxRig-Look for the pages in a folder), Exec = the configured terminal + bxrig tui PAGE) through the config service (backup, journal) and the embedded app icon (7 PNG sizes, 16 to 256, and the scalable SVG: ~/.local/share/icons/hicolor/SIZExSIZE/apps/bxrig.png and hicolor/scalable/apps/bxrig.svg, each only when missing) to the user's icon theme. The icon is the BxRig laptop alone (transparent, no tile or glow, as large as the canvas allows); 16 to 48 px use a simplified drawing (thicker bezel, bigger emblem, plain base) and 64 px and up the full one, drawn by assets/build.py and rendered by node assets/render.js icons. status --json has icons (how many of the 8 files exist) and icon (all of them). An entry you edited is kept and reported; off and remove launchers delete only the entries BxRig wrote and each icon file only while it is still BxRig's. They group in a "BxRig" submenu: at its top the Setup Wizard (bxrig init, in a terminal), the Runner Menu (bxrig menu, no terminal) and the Control Center (bxrig tui) as bxrig-wizard.desktop, bxrig-runner.desktop and bxrig-controlcenter.desktop, then Apps and Dashboard, then three folders with their own icon: Develop (applications-development: BoxLang, Java, Maven, Gradle, Versions, Databases, Mail, Ports), System (applications-system: Machines, Storage, Secrets, Logs, Packages, Shortcuts) and Look (preferences-desktop-theme: Themes). The files are ~/.local/share/desktop-directories/bxrig.directory and bxrig-develop|system|look.directory (name and icon) and ~/.config/menus/applications-merged/bxrig.menu (nested <Menu>, one X-BxRig* category each); all carry the marker, are removed by off only when no edited entry is kept, and status --json has submenu. Menus without folders (rofi, fuzzel, GNOME) list the entries flat. No StartupWMClass is written: it must equal the class the terminal gives its window, and not every terminal can set one. Exit 0, 2 plan without --yes, 4 no terminal, root or no base64, 6 write failed. Nothing is installed unless asked.
  • Shortcuts: each page has a shortcut-table row tui-PAGE with no keys (unbound, runs bxrig tui PAGE), so you can bind one in the keys editor; unbound rows are never a conflict and render nothing.

14. Install and the setup wizard (decided with the owner 2026-11-10; install, wizard and the init engine are built, the pages' later commands are not)

14.1 Install

bootstrap/install.sh [--yes] [--dry-run] is the one install command. It prints the plan, asks one Proceed? [Y/n] at a terminal (without a terminal it needs --yes, else exit 2; --dry-run exits 0), then runs, in order: packages with yay and Rust, toolchains (mvm, bvm, BoxLang, nvm and Node, MatchBox), the bxrig binary, and the core apps (bxrig profile-install core --yes). External installer scripts run without a gate (section 2, rule 8). MatchBox (decided 2026-11-18, replaces the S3 build of the branch head): the toolchains stage installs MatchBox through mvm. Stable by default: mvm install latest, mvm use latest, only when no MatchBox is installed (a re-run leaves an installed one alone). --snapshot or BXRIG_MATCHBOX_CHANNEL=snapshot: mvm install snapshot, mvm use snapshot on every run (mvm skips an unchanged build). --matchbox-branch REF [--matchbox-repo OWNER/NAME] (BXRIG_MATCHBOX_BRANCH, BXRIG_MATCHBOX_REPO; the default repo is toolchain.matchbox.repo, the default branch of the alias --matchbox-from-source is toolchain.matchbox.ref, bxrig): git clone --depth 1 --branch REF, cargo build --release --features bif-tui, installed as $BXRIG_HOME/matchbox/bin/matchbox` with `build.info` (repo, branch, commit, source); it is first on the installer's PATH (never replaces mvm's MatchBox) and is rebuilt only when the repo, the branch or the remote head (`git ls-remote`, unreadable counts as moved) changed. Choosing `--snapshot` removes an earlier branch build; no option leaves it. REF `^[A-Za-z0-9._/@+-]+$ (no leading dash, no .., no leading or trailing slash) and OWNER/NAME are validated, invalid is exit 2, --snapshot with a branch is exit 2, and values reach git only as argv items. BXRIG_MATCHBOX_FILE=PATH installs a local build instead (source file). Capability, not version: no check compares the MatchBox version with box.json. Only the stage that compiles bxrig needs a capable MatchBox: the binary stage without --binary (so also the stage of a github source and scripts/setup-local.sh) runs matchbox probe.bxs, a three line script that creates createObject( "rust", "tui.TUI" ), draws a frame and prints a marker; a MatchBox built without bif-tui (stable and snapshot today) stops it with exit 1 and This MatchBox (VERSION) cannot compile BxRig ... use --matchbox-branch bxrig, never switching MatchBox on its own. With --binary PATH (the web installer's prebuilt bxrig) any MatchBox is fine; the toolchains stage only notes whether the MatchBox can compile bxrig, and install.sh check prints matchbox: VERSION (compiles BxRig: yes|no). --snapshot, --matchbox-branch, --matchbox-repo and --matchbox-from-source are accepted by the full install and by toolchains --yes; --dry-run prints the MatchBox line and step. install.sh check is the read-only report; packages|toolchains|binary|core --yes re-run one stage. Disk (decided 2026-11-18, from a real Arch container run): a single stage needs 5 GB free in $HOME (MIN_FREE_GB); the whole install needs 8 GB (FULL_FREE_GB), checked up front, so a machine with 5 to 7 GB cannot pass stage 1 and fail at stage 2 after Rust was installed. The 8 GB: Rust about 2.5 GB (6 GB free before, 4 GB after), packages about 1.3 GB (pacman: 1334 MiB), the MatchBox branch build with its cargo target directory about 3 GB, Java, mvm, bvm, BoxLang and the bxrig binary about 0.5 GB, 0.7 GB of headroom. The plan prints Disk: need 8 GB for the whole install, N GB free (ok|not enough); the real run exits 1 with Not enough free disk space ... Nothing was changed. before any stage; --dry-run only reports; check prints disk-free: N GB (need 8 for the whole install). Closing line: the core profile has no apps, so the last stage says Nothing to install. Choose the desktop and apps with \bxrig init`.and the install ends withTools installed. Run `bxrig init` for the desktop and apps.(at a terminal:Tools installed.and the wizard starts). **mvm failures:**mvm installis tried three times and its own output is shown; only output with 403, 429 orrate limitgets the rate-limit hint, anything else (a proxy, a TLS-inspecting firewall that mvm does not trust) getsCould not reach GitHub. Behind a corporate proxy or a TLS-inspecting firewall? ...and the branch-build alternativeinstall.sh toolchains --yes --matchbox-branch bxrig`. When the wizard exists the install ends by starting it at a terminal.

Required vs optional toolchains (decided 2026-11-10): the install always adds BoxLang (Java 21, bvm, mvm, MatchBox, Rust). nvm and Node.js are no longer part of it; they are the optional JavaScript toolchain: bxrig toolchain node [--yes] [--dry-run] [--json] runs the pinned nvm installer from box.json toolchain.nvm (an external script: its URL is in the plan, it adds nvm to your shell startup files) and nvm install lts/*, skipping what is already there. Bun and Deno are catalog apps (install bun deno).

14.2 bxrig init

A full-screen terminal wizard that asks the questions below, shows a review screen, then runs the matching commands. Answers are saved to ~/.config/bxrig/answers.json (mode 600, written atomically); a re-run starts from the saved answers.

bxrig init                          the wizard (needs a terminal)
bxrig init --answers FILE [--yes] [--dry-run] [--json]    headless: no TUI, the plan from FILE; same --yes / --dry-run rules as every mutating verb
bxrig init --print-answers          the saved answers

Exits: as setup (0, 2, 4, 5, 6, 7, 8); 4 also for no terminal without --answers. The wizard is only a front end: every answer becomes an ordinary command, so anything it does can be run by hand.

14.3 Pages, answers and what they run

Default desktop (decided 2026-11-10): Hyprland + Noctalia. KDE Plasma stays installed whatever is chosen but is configured (HyprKwin tiling, shared keys) only for both or plasma. The login session follows the choice: hyprland starts Hyprland, plasma starts Plasma, and both asks (login_session, default Hyprland). session set runs for the resulting session. A question may carry when: { id, in: [...] } (or equals); hidden questions are not asked, not reviewed and not in the answers file.

PageAnswers (keys in answers.json)Runs or writes
Desktopdesktops (hyprland default, both, plasma), layout (dwindle tiling default, master, scrolling carousel, floating; asked for Hyprland and Both), workspaces (persistent count), login_session (hyprland or plasma, asked only when desktops is both)setup hyprland, setup plasma, tiling on|off, session set
Looktheme (dark, light, auto; this is the mode, not a theme name), dock, bar_position, world_clock, world_clock_zones (IANA zones); no theme listsetup hyprland --theme=, appearance dock, appearance bar position, time world
Top bar layout (after Look; Hyprland and Both)bar_layout (minimal, standard default and recommended, dense). The page draws each bar as text chips with the dock line below; the arrow keys select and preview at onceappearance bar layout X
App grid style (after Top bar layout; Hyprland and Both)appgrid_style (launchpad default, terminal). Both grids are drawn side by sideappearance appgrid X
Theme (after App grid style; every desktop)theme_name (any theme in themes/, default bxrig; the Theme page is the only place a theme is chosen, and the icon set is not asked). The list shows a swatch per theme and a pane with the highlighted theme's palette read from its colors.toml; the wizard is drawn in the highlighted themetheme set X
Input and languageskeyboard_layouts (e.g. us variant intl, es), locale, natural_scroll, mac_keys, keyboard_type (pc or apple, asked when mac_keys is on), input_devices (detect|none|apple|logitech|both, asked when a device is detected or mac_keys is on; the hidden input_detected carries what was found; 13.65)Hyprland kb_layout, KDE keyboard config, locale, setup xremap
Developer identitygit_name, git_email, ssh_key, shell (zsh default, fish, bash; Starship always), terminal (ghostty default), terminals_extra, editorgit config, ssh-keygen, setup shell, setup terminal, setup hyprland --terminal
Toolchainstoolchains (java with gradle and maven, php with composer and laravel, python, go, javascript), js_runtimes (node with nvm default, bun, deno; asked only when javascript is chosen). BoxLang is always installed (shown as a note)catalog profiles, toolchain node, install bun deno
Containerscontainer_engine (podman default, docker)package and service setup
Databasesdatabases (PostgreSQL, MySQL, MariaDB, Redis, MongoDB, Couchbase, pgvector, Chroma, Qdrant, Weaviate, Meilisearch, OpenSearch, Elasticsearch; none preselected; Milvus is not supported)db engine, db start per service
AI (own page, after Apps)ai_agents (claude-code, codex-cli, gemini-cli), ai_default, ai_orchestrators (pane default, orca, herdr), ai_local (ollama, lm-studio, jan, koboldcpp, gpt4all; nothing preselected), ai_local_setup (now default, later), ai_local_picks (balanced, all), ai_local_tune, ai_keys (later default, now), ai_global_keys (only with now; default none)installs through install; then secrets setup, one optional secrets set KEY per single-provider agent plus per ticked provider (ai_providers) when now (typed hidden at the terminal, skippable; never saved in answers.json), optional secrets global on KEY, and ai default ID
VPNvpn (Tailscale, WireGuard, OpenVPN, Mullvad, Proton)catalog and services; the commands are in 13.58
Password managerpassword_manager (Bitwarden, KeePassXC, 1Password, Proton Pass, Enpass, NordPass, Keeper, Bitwarden CLI, pass, gopass; each value is a catalog id)catalog
Gaminggaming (none, steam, bundle)catalog (CachyOS gaming bundle)
Appsapp_mode (defaults = Basic, or custom = Customize), apps_<group>_<category> lists (Customize only), default_browser (the terminal you picked becomes the default terminal), launcher (noctalia default, walker, rofi, fuzzel, wofi; asked for Hyprland and Both), menu (rofi default, walker, fuzzel, wofi)install (the provider's package), runner set, runner menu-set
Backups and storagesnapshots, backup_target (restic or borg), mounts, cache_cleanupsnapper, timers
Importdotfiles_repo (the method is detected, not asked)dotfiles apply (last step)

Fonts are not a question: the install always adds JetBrains Mono, JetBrains Mono Nerd, the Powerline fonts and the Nerd Fonts symbols (with the Noto fonts setup hyprland already installs).

Built (W4): init, init --answers, init --print-answers. The planner (InitPlan, pure) turns answers into this ordered list, one ordinary command each, run through the program itself with --yes: setup hyprland [--terminal --layout], setup plasma, setup terminal, setup shell, setup xremap, install (AI orchestrators and agents), git config --global (name, email), and last session set. A missing answer adds no step. A step that fails stops the rest (exit 7 when some were done, else that step's exit code; the others are skipped). Also run: profile-install jvm|php|python|go per toolchain (composer global require laravel/installer after PHP; JavaScript runs toolchain node for Node.js with nvm, and Bun and Deno join the install), profile-install containers (Podman) or install docker, profile-install gaming (bundle) or install steam, and one install for the AI tools, VPN (tailscale, wireguard, openvpn, mullvad, proton-vpn), password manager and backup tools (snapper with snap-pac, restic, borg). Databases: db engine remembers the container engine (container_engine), then db start ENGINE runs for each picked service (none is preselected); database_passwords (generate default: "Generated (recommended)", or ask: "My own password"; the question appears once a database is picked) adds --ask-password for the engines that have a password (the typed password is never stored in answers.json; asking needs a terminal, so a headless init with ask fails that step with exit 4). Apps: Basic runs install --shell=...; Customize runs one install with the ticked apps (filtered by desktop); then default browser and default terminal. Answers whose command does not exist yet (ssh_key; and workspaces, natural_scroll, layouts, theme, wallpaper when Hyprland is not being set up, because only the Hyprland starter takes them) are saved and listed as pending, never dropped silently. init at a terminal runs the wizard, saves answers.json, then runs the plan (the review screen is the confirmation; --dry-run only prints). install.sh ends with bxrig init at a terminal and prints a hint otherwise.

14.4 Rules

  • Every answer is optional; an unanswered page does nothing. The review screen lists exactly the commands that will run.
  • init never runs a step the user did not choose, and never overwrites a file the user changed (the config service rules of section 6 apply).
  • Starter configs are parametrized by the answers (workspaces, window style, layouts, theme, wallpaper, bar position, world clocks, natural scroll); the defaults are the current starters.
  • Databases follow the earlier plan (plan.md section 7): Podman is the default engine and Docker is an explicit choice; services run as containers with start, stop, status and logs, persistent volumes and generated passwords kept in a mode-600 file.
  • Runner integration (legacy bxrig-runner): launcher providers system, noctalia, rofi, walker, krunner, vicinae, hyprrunner, custom; menu providers rofi, walker, vicinae, hyprrunner; commands are JSON argument arrays, never shell strings; keybindings are never changed. Default on Hyprland is Noctalia (Super+Space).
  • The TUI needs MatchBox's bif-tui in the native runner (task W2). Until then init --answers is the only form.

14.5 Tasks

W1 this section; W2 native TUI in MatchBox; W3 install.sh (done); W4 init engine (planner and headless run); W5 catalog additions; W6 parametrized starters; W7 TUI pages; W8 CI and docs; W9 bxrig db; W10 dotfiles import; W11 bxrig runner.

13.51 Pictures in the TUIs (decided with the owner 2026-11-14)

  • Optional, never fatal. A picture that is missing, slow, too big or broken becomes a letter tile; no picture call blocks a frame or throws. Details and limits are in docs/guides/images.md.
  • Pieces: TuiKit.image and imageOrTile (drawing, via MatchBox tui.image), ImageCache (background https downloads, magic byte check, size and time caps, failures remembered 6 hours, 200 MB cache at ~/.cache/bxrig/images), AppIcons (installed icon theme with the GTK theme and its Inherits before hicolor, an Icon= name used as it is, SVG-only icons rasterized once to ~/.cache/bxrig/images/svg by rsvg-convert or ImageMagick with a 4 second limit and a remembered failure, AppStream icons, Dashboard Icons by name, AppStream screenshots).
  • Sources and attribution: Dashboard Icons (Apache-2.0, logos remain their owners' trademarks, used to identify the app); AppStream data from archlinux-appstream-data. No web image search.
  • Settings: BXRIG_IMAGES=on|off, BXRIG_CACHE_HOME, BXRIG_IMAGE_CAP_KB, BXRIG_IMAGE_MAX_TIME, BXRIG_SHARE_DIR.
  • Build: the compiler needs MatchBox built with --features bif-tui.

13.52 The Apps manager (decided with the owner 2026-11-14)

  • One page, three jobs. apps is the second Control Center page (after Dashboard): Installed, Discover and Updates tabs, a search box that is always visible, a list and a preview. bxrig tui apps [--demo] [--json] runs it alone; --json prints the installed list and the update count (waiting up to 6 seconds for the update check).
  • Classes. AppsData (everything read from the machine, with demo data), AppsModel (tabs, search, keys, intents; pure), AppsPage (drawing). A future desktop app uses AppsData as it is.
  • Sources of truth. Installed: .desktop files, ONE pacman -Qo for all of them, pacman -Qm (AUR), pacman -Sl (repository names), pacman -Qi (size, date), flatpak list when flatpak exists. Discover: the embedded catalog first, then bxrig pkg search --json for the repositories and the AUR, run in a detached background job. Updates: checkupdates and yay or paru -Qua in a detached job. The page never waits for them.
  • Keys. Search focus: every printable key is text, Escape clears then quits, Down or Enter go to the list. List focus: i x o n u s f r / 1 2 3, Left and Right change tab, q quits, backslash toggles the sidebar. Tab and Shift+Tab always change page; [ and ] change page only on pages that do not take text. Pages ask the Control Center to quit or toggle the sidebar with the intents { action: "quit" } and { action: "sidebar" }.
  • Changes. Install goes through bxrig install ID or bxrig pkg install NAME [--aur] with its own --dry-run plan. Remove is an exec intent whose plan is written in words (what else goes, who needs it, that home files stay) and runs bxrig pkg remove NAME --yes. Update all is bxrig system update. Nothing runs before y.
  • Tests. tests/apps_manager_test.bxs (parsers, model, screens at 80x24 and 120x36), tests/apps-manager-test.sh (fake pacman, checkupdates, flatpak and .desktop files; asserts -Qo is called once).

13.53 Shared helper classes (decided with the owner 2026-11-14, code review refactor)

One home per concept; command classes hold small collaborators in variables.* (there are no base classes on MatchBox).

  • Output: Cli.say( command, code, data, asJson, lines = [], dry = false ), Cli.fail( command, code, msg, asJson ), Out. Out is the same bound to one command name (variables.out = new bxrig.Out( variables.cli, "time" )): say, fail, usage (2), precondition (4), failed (6), sub( command ). Every method returns the exit code. A class must not create Out from inside Out/Cli.scoped chains of its own class (MatchBox overflows the stack when a class news itself).
  • Processes: Proc. exec( argv, timeout ) never throws ({ exitCode, output, timeout }, 127 and the reason when the program cannot start), raw may throw, has( name ) is command -v with the name as an argument (never run the tool), works( name ) is name --version, isRoot(), self( args, timeout ) runs BxRig itself (BXRIG_SELF). Installer.proc() hands the same injected test runner to a class; Installer.hasCommand is Proc.has, so a tool without --version counts as installed.
  • Paths: Env. BXRIG_*_HOME, then XDG_*_HOME, then $HOME for every folder: xdgConfig( sub ), xdgData, xdgState, xdgCache (shared with other programs) and BxRig's own config, data (BXRIG_DATA_HOME is the folder itself), state, cache. A user with XDG_CONFIG_HOME set now gets every BxRig file under it (bxrig/, menus/, nvim/, strata/); tests/paths-test.sh guards it. new bxrig.Env( { HOME: "/h" } ) replaces the real environment in unit tests.
  • Text: Text (merge, pad, padLeft, lines, nl).
  • Desktop entries: DesktopEntry. parse (exact-case keys, only the [Desktop Entry] group, launcher for BxRig's own X-BxRig-Launcher entries), dirs( withFlatpak ) (BXRIG_APPS_DIRS, older BXRIG_DESKTOP_DIRS), entries( dirs, launchers, needExec ), iconName, cleanExec, render( lines ). The Apps page leaves BxRig's launchers out; the apps launcher grid keeps them.
  • Package layout. src/bxrig/ has one class per command or feature (152 classes, 4,982 lines of generated *Data.bx among them); src/bxrig/util/ has the 23 shared helpers, reached as bxrig.util.NAME: Cli, Out, Exit, Mutation (plans and dry runs), Proc, Env, Text, Fmt, Names, JsonStore, SystemFile, SystemdUnit, Systemd, Pacman, Aur, Http, Urls, Desktop, DesktopEntry, Ini, Props, Lua and the generated Version. A helper never holds a command's job and a command never holds a helper's; tests/dry-test.sh keeps the copies from coming back.
  • Command registry. docs/reference/cli.json holds every command (name, group, summary, usage, examples, flags with types, note). bootstrap/gen-docs.sh writes commands.md, command-flags.md, HelpData.bx (bxrig help) and CommandFlagData.bx from it and fails when Main.bx has a command the file lacks (or the reverse), an example names no command, or a usage line uses a flag the command does not list. CommandSpec answers flags and usage at run time.
  • Unknown command exit. A command that is not in Main.bx prints "Unsupported command" and exits 2 (it exited 0 before); the flag whitelist has no duplicates.
  • Tests. tests/lib/harness.sh (binary, tmp, fail, stub, code), tests/run-all.sh (discovery, parallel), tests/dry-test.sh (ratchet of copied helpers and of tests missing from CI).

13.54 The second shortcut round: browser, files, webcam, quake console, recording with audio, Hardware menu (decided with the owner 2026-11-15)

Keys and the reasons for each choice are in SHORTCUTS-DECISIONS.md (second round). All of these act at once, take --dry-run and --json, build argv arrays only, and exit 0 done, 4 precondition, 6 the program failed to start or stop (2 for a bad --audio value or unknown subcommand).

  • browser private [URL] (Programs): the default web browser (xdg-settings get default-web-browser, set by default browser and the wizard) started in its private mode, detached with Proc.detach. Known: Firefox --private-window; Chromium, Brave and Chrome --incognito; Edge --inprivate. No default or an unknown browser: exit 4. Keys: Super+Alt+Shift+B (Traditional), Super+Shift+N (Mac).
  • files here [DIR] (Programs): xdg-open on DIR, else on the working directory of the focused window (hyprctl activewindow -j for the pid, the newest child by pgrep -P down at most 8 levels, readlink /proc/PID/cwd), else the home folder. default filemanager decides which program opens. Key: Super+Alt+Shift+F.
  • webcam toggle|status (Webcam): mpv --wayland-app-id=bxrig-webcam --title=bxrig-webcam --profile=low-latency --untimed --no-audio --no-osc av://v4l2:/dev/video0; a second toggle ends it (pkill -f). The Hyprland module floats the window class bxrig-webcam at 360x270. Exit 4 without mpv or /dev/video0. Key: Super+Ctrl+Alt+V.
  • window quake and window quake send (MacExtras): the special workspace qconsole. quake runs hyprctl dispatch togglespecialworkspace qconsole (the Lua form as a fallback) and, when nothing is on that workspace (hyprctl workspaces -j), first starts the default terminal there with hyprctl dispatch exec "[workspace special:qconsole] TERMINAL". quake send is movetoworkspacesilent special:qconsole. Keys: Super+Shift+Grave, Super+Ctrl+Grave; Super+Grave stays the AI shell.
  • record ... --audio=desktop|mic (Record): adds -a"DEVICE" to wf-recorder: the monitor of the default sink (pactl get-default-sink plus .monitor) or the default source (pactl get-default-source). Both at once is not offered (wf-recorder takes one device). Exit 2 for another value, 4 without pactl. Key: Alt+Print (desktop audio).
  • Hardware menu: a top-level section of the menu tree (Monitors, Laptop panel, Mirror, Brightness, Webcam, GPU check, Input devices, AirPlay); menu open hardware, key Super+Ctrl+H. It replaces Setup > Hardware. Audio, Bluetooth and Wi-Fi entries came later, see 13.55.
  • Tests: tests/launchers_programs_test.bxs (argv, toggles, quake, audio with a recording runner), shortcuts_test.bxs (rows and both styles), shortcuts_runner_test.bxs (runner entries and the route), utilities-test.sh, macextras-test.sh and menu-test.sh (fake tools). Not verified on a real Hyprland session: the quake workspace, the focused window's folder, the webcam window rule and mpv's --wayland-app-id.

13.55 Audio, Bluetooth and Wi-Fi: core utilities, fallback terminal UIs, status commands (decided with the owner 2026-11-15)

BxRig builds no Bluetooth, audio or Wi-Fi pages of its own: the Noctalia bar already has the network, bluetooth and volume widgets and panels. What BxRig adds is the plumbing under them, a terminal fallback, and read-only status. Three steps, one commit each (the shapes below are the plan; the sections of the step commits say what was built).

A. Core utilities, always installed. Catalog entries with tier: default (installed by a plain bxrig install, no wizard question): bluez (bluez, bluez-utils, exists), pipewire (new: pipewire, pipewire-pulse, wireplumber, libpulse, which provides pactl), mpv (exists, default), playerctl (made default), brightnessctl (new; setup hyprland already installs it, the catalog entry makes the plain install and Display precondition message point at it). Every name was looked up on https://archlinux.org/packages/search/json/?name=NAME (all in extra); verified_on is the day of that lookup, nothing was installed. bluetooth.service is enabled by setup hyprland as one more plan step (kind: "systemd", built with Systemd.enableArgv( ..., sudo ), shown and run by the same plan runner as every other step, skipped when facts.bluetoothEnabled); bluez and bluez-utils join hyprlandPackages so the unit exists when the step runs. setup plasma has the same step (skipped when enabled, left out of --undo-keys); when bluez is missing, bluez and bluez-utils join its package step. It remembers that it enabled the unit in $XDG_STATE_HOME/bxrig/setup-plasma.json ({ bluetooth: true }, mode 600) and setup undo plasma turns the unit off first, only when that record exists and the unit is enabled. init runs setup hyprland and setup plasma for the chosen desktops, so it gets the service from those steps; it adds no step of its own.

B. Fallback terminal UIs (default tier, they are small): wiremix (made default), bluetui (new, extra 0.8.2). impala (extra 0.9.0) is in the catalog as tier optional only: it needs iwd as the Wi-Fi backend with NetworkManager and wpa_supplicant disabled, so it cannot sit next to NetworkManager; no default install, no menu entry (open question for the owner). Menu, section Hardware: Audio mixer (terminal) runs wiremix, Bluetooth devices (terminal) runs bluetui, each in the configured terminal; Audio, Bluetooth and Wi-Fi open the Noctalia control center panel (noctalia msg panel-toggle control-center, the action of Super+Alt+C). The menu tree gets two entry kinds that run a program itself instead of bxrig ARGV: tool (in a terminal window that closes when the program ends; exit 4 when the program is not installed) and exec (detached, no window). No new key bindings; Super+Ctrl+A/B/N/P/D stay as they are.

C. Read-only status, all --json envelopes, all exit 0 or 4, no --yes, argv arrays through Proc:

CommandClassReadsExit 4 when
bxrig audio statusAudiopactl --format=json info, list sinks, list sourcespactl missing, or no sound server answers
bxrig bluetooth statusBluetoothbluetoothctl show, devices Paired, devices Connected, bluetooth.servicebluetoothctl missing
bxrig wifi statusWifinmcli -t radio, device status, active access pointnmcli missing

No network status command existed (checked: only dns uses nmcli), so wifi status is new. data shapes: audio { server, default_sink, default_source, outputs: [ { name, description, volume, muted, default } ], inputs: [ ... ] }; bluetooth { service, adapter, powered, discoverable, pairable, devices: [ { address, name, connected } ] }; wifi { radio, devices: [ { device, state, connection } ], ssid, signal }. They are cli.json entries (group Tools, after input), so help, commands.md and flag checks come from the registry. The Hardware menu shows them as Audio status, Bluetooth status and Wi-Fi status.

Built. A: setup hyprland installs bluez and bluez-utils with the rest and adds the step bluetooth (sudo systemctl enable --now bluetooth.service, skipped when systemctl is-enabled says yes; Systemd.enabled is new); setup undo hyprland turns it off first when setup added bluez. setup plasma got the same step later (tests/setup_plan_test.bxs, tests/setup-test.sh). The wizard question "Desktop utilities" lost its playerctl option (it is always installed now). B: menu kinds tool and exec (MenuTree, Menu.startTool, Menu.startExec); Hardware has Audio, Bluetooth, Wi-Fi (panel), Audio mixer (terminal), Bluetooth devices (terminal), and the three status entries. C: Audio, Bluetooth, Wifi classes. Tests: tests/setup_plan_test.bxs, tests/shortcuts_runner_test.bxs, tests/hardware_status_test.bxs (fake runner), tests/setup-test.sh (fake systemctl). Not verified on a real machine: the pactl --format=json field names, bluetoothctl devices Paired|Connected (BlueZ 5.65 or newer) and the nmcli -t columns were written from their documentation; the terminal fallbacks and the panel entries were not started.

13.58 vpn: one list of VPNs with data-driven adapters (decided with the owner 2026-11-17)

The top bar has a VPN icon (plugin bxrig/vpn, section 13.59); this is the command behind it. One pick-one list with two groups: Network profiles (saved NetworkManager connections of type vpn or wireguard, through nmcli) and VPN apps (NordVPN, NordLayer, Tailscale, Mullvad).

  • vpn list [--json] the installed providers and profiles with their state; an empty list, exit 0, when nothing is installed (the bar icon hides itself then). data: { providers: [ { id, name, group (profiles|apps), kind, state, connected, location, detail, can_pick, coexist, verified, note } ], connected: [ids], allow_several, install: [ { id, name, install } ] }. state is connected, connecting, disconnected, login (log in first), unavailable (daemon not running) or unknown. A profile's id is nm:NAME.
  • vpn status [NAME] what is connected (one provider with NAME). vpn locations NAME the places it can connect to: { provider, can_pick, current, locations: [ { value, label } ] } with the reserved first entries default (connect as it is) and, where the provider can clear a choice, none (Tailscale: no exit node), then the provider's own list (NordVPN countries, Tailscale exit nodes, Mullvad countries and cities, NordLayer gateways).
  • vpn connect NAME [--location=VALUE] and vpn disconnect [NAME] start or stop a program, so they act at once and take --dry-run (the exception of 2.11). Without a NAME disconnect stops everything that is connected. Default: one at a time: connecting first disconnects what is connected. vpn set allow_several=true|false --yes (saved in ~/.config/bxrig/vpn.json through the config service, --dry-run shows the plan) lifts that, for Tailscale next to another VPN; a note says that two VPNs can clash on routes and DNS. Not tested against a real NordVPN plus Tailscale: the owner is to try it.
  • Exit codes: 0 done or nothing to do; 2 bad usage, an unknown name, a bad --location (no leading dash, plain characters, up to 80), set without --yes; 4 no VPN installed (status, connect, disconnect, locations), a known provider that is not installed, or no NetworkManager for an nm: name; 6 a command failed.
  • Adapters are data. catalog/vpn-providers.json (a resource) has one object per app: binary, install (catalog id), status { argv, parser }, connect, connect_to (with {location}) or select plus select_order (before or after, for apps that pick a place in a separate command) and select_none, disconnect, locations { argv, parser }, default_label, none_label, coexist, verified, note. The code (VpnAdapters) has no branch for any provider; the only code is the named parsers in VpnParsers (nordvpn, nordlayer, tailscale, mullvad, words). A provider of your own goes in ~/.config/bxrig/vpn-providers.json ({"providers":[...]}, adds or replaces by id). Argv templates are arrays (rule 9): {location} is one argument, {location*} the location split on spaces.
  • Verified against the vendors' documentation on 2026-11-17 (each adapter's note says exactly what): NordVPN status, connect, disconnect, countries (support.nordvpn.com); Tailscale up, down, set --exit-node= (an empty value clears it), exit-node list, status --json (tailscale.com/kb/1080/cli); Mullvad status, connect, disconnect, relay list, relay set location COUNTRY [CITY] (mullvad.net); nmcli connection show|up|down, -t escaping of : (NetworkManager manual). Not verified: NordVPN connect COUNTRY by name (from nordvpn help connect, the page shows connect CODE SERVER); the exact text of mullvad status and relay list between app versions; the Tailscale JSON field names (the page only says "detailed JSON"); NordLayer status, gateways and disconnect (help.nordlayer.com confirms only nordlayer connect GATEWAY-ID and nordlayer settings set), so its parsers are tolerant and its adapter says partial.
  • Catalog: nordlayer is a new catalog app (aur, target nordlayer, kind desktop, optional; the AUR RPC listed it on 2026-11-17 as version 3.6.0, a community package of the vendor's .deb from downloads.nordlayer.com; the vendor ships only .deb and .rpm, so there is no vendor package for Arch). The wizard's VPN question offers it (no extra step: log out and in, then log in with the app). Check the package before relying on it: it is not maintained by NordLayer.
  • Left out on purpose: ExpressVPN and Surfshark (owner); Proton VPN (its command line was not verified: no adapter row until it is); WireGuard wg-quick (needs root for every up and down: a NetworkManager WireGuard profile covers it).
  • The NordVPN post-install steps stay as they were: vpn nordvpn setup [--yes] (13.20) is routed through the same class.
  • Tests: tests/vpn_test.bxs (parsers, adapters, the commands with a fake runner), tests/vpn-test.sh (fake nordvpn, tailscale, nmcli; no real VPN is touched).

13.59 The VPN bar plugin bxrig/vpn (decided with the owner 2026-11-17)

  • Folder templates/noctalia-plugins/vpn/ (plugin.toml, bar.luau, panel.luau, vpn.luau, the shared bxrig.luau, translations/en.json), plugin id bxrig/vpn, plugin_api = 43. It is installed and enabled like the others: Starter copies every template folder, NoctaliaConfig writes [widget.bxrig-vpn] (type = "bxrig/vpn:bar") and adds bxrig/vpn to [plugins] enabled.
  • Bar. Standard and Dense carry bxrig-vpn right after bxrig-dev and before tray (the canonical order of the end zone: agents, capture, system, dev, vpn, tray, clipboard, network, bluetooth, volume, battery, notifications, quick, control center). Minimal does not. The widget is a bare Tabler glyph with no plate (hybrid icon rule): shield-check in primary while a VPN is connected, shield in on_surface_variant otherwise. Noctalia's palette has no success role, so primary (the brand green) means connected. A second VPN adds its count. The widget hides itself (barWidget.setVisible(false)) until the first answer and whenever bxrig vpn list has no entry, that is, no VPN app and no saved VPN or WireGuard profile.
  • Popover (420 wide, content height, attached): one list in two groups, Network profiles and VPN apps; each row has a status dot (primary connected, tertiary connecting, error log in or not running, muted off), the name, one state line, a pin button when the app can pick a place and a switch. On: vpn connect NAME (which disconnects the connected one first). Off: vpn disconnect NAME. The pin opens a page with a search box and the places from vpn locations NAME --json; a click runs vpn connect NAME --location=VALUE. The bottom switch "Allow more than one at the same time" runs vpn set allow_several=true|false --yes; with two connected a line warns about clashing routes and DNS. A row whose state is login or unavailable has its controls disabled and says why; the note of an adapter is the tooltip of its name. Empty: "No VPN is installed" and an install button per app (bxrig install NAME --yes in a terminal that waits for Enter, the name checked first).
  • Refresh: every 10 s while the popover is open, every 60 s in the background; the popover hands its answer to the shield through noctalia.state, so the shield follows it.
  • Not run on a real Noctalia in this build (the owner has one agent check every plugin on screen later). Written against the plugin docs of noctalia-shell main (plugin API 43: barWidget.setVisible, ui.toggle, ui.input, ui.scroll, noctalia.runAsync with an argument list, noctalia.state); glyph names (shield, shield-check, shield-off, map-pin, map-pin-off, arrow-left, download, refresh, loader, alert-triangle) were checked in Noctalia's Tabler font list; the scripts were also run against a mock of the plugin API with canned bxrig vpn answers (list, toggle, place pick, allow several, empty state). Open: the look of the rows, ui.input focus on the places page, setVisible before the first render.
  • Tests: tests/plugin_vpn_test.bxs (manifest, files, translations, block balance, the commands it runs against the CLI usage, refresh rates, hide-when-empty), tests/noctalia_config_test.bxs and tests/noctalia-config-test.sh (the layouts and the config text).

13.60 doctor (alias prerequisites): one line per tool (decided with the owner 2026-11-18)

bxrig doctor [--json] was two header lines and nothing else; it now checks every tool BxRig relies on and prints one status line each, under two headers (Workstation prerequisites: ..., Native build prerequisites: ...). Read-only, no --yes.

ok   git 2.50.1
miss jq (install: sudo pacman -S jq)
ok   matchbox 0.14.0 (compiles BxRig)
  • Tools: git, curl, unzip, jq (pacman packages of the same name), java (must be 21; miss java 17 (found 17, need 21; install: sudo pacman -S jdk21-openjdk)), mvm, bvm, boxlang (install: install.sh toolchains --yes; the BoxLang version is read from BVM's current symlink, boxlang --version is not run), matchbox, rustc and cargo (install: sudo pacman -S rustup && rustup default stable).
  • matchbox runs the same three line probe as the installer (createObject( "rust", "tui.TUI" ), 60 s limit). A MatchBox that cannot compile BxRig (stable and snapshot builds) is miss: miss matchbox 0.13.2 (cannot compile BxRig; install: install.sh toolchains --yes --matchbox-branch bxrig), and the exit is 4. --json carries compiles_bxrig.
  • Exit: 0 when every tool is there, 4 (precondition) when any line is miss; 2 for arguments it does not take. --json envelope: data: { ok, tools: [ { id, group (workstation|native), ok, version, detail, fix } ] }. Class bxrig.Doctor; test tests/doctor-test.sh (fake tools on a PATH that holds only sh and the fakes).

13.66 The screensaver (decided with the owner 2026-11-18)

  • What it is. After a while idle, terminal art in the theme's colours on every monitor, then the lock. Six effects take turns, a minute each, from a random first one: sweep (BXRIG in DOS Rebel with a gradient sweeping across it), laptop (the About laptop with a glint crossing BX), rain (BoxLang code falling in columns), clock (the time in DOS Rebel, drifting), stars (a starfield) and logo (your text in DOS Rebel or a picture in half blocks, drifting). Every effect moves, so nothing stays on the same pixels. Any key, click, scroll or mouse move closes it (mouse moves need MatchBox's tui.set_mouse_motion; events in the first half second are ignored).
  • Commands. screensaver [status] [--json]; on|off [--yes] (off keeps the lock); set screensaver=SECONDS lock=SECONDS effects=NAME,NAME [--yes] (whole seconds, 0 for never, the lock after the screensaver); logo text TEXT|image PATH|reset [--yes] (1 to 10 letters, digits, spaces or . _ ! : -; a png, jpg, gif, webp or svg); effects [--json]; start [--effect=NAME]; stop; preview [EFFECT] (in this terminal); run [--effect=NAME] (what each window runs). A change without --yes is a plan. Exit 0, 2 usage, 4 no Hyprland, no terminal that can name its window, or not a terminal.
  • Settings: ~/.config/bxrig/screensaver.json { enabled, screensaver, lock, effects, logo }; defaults on, 150 s, 300 s, every effect, the text BXRIG. A value that is not valid keeps its default.
  • Idle (Noctalia, docs.noctalia.dev services/idle). Two behaviors in [idle], behavior_order = ["bxrig_screensaver", "bxrig_lock"]: bxrig_screensaver is action = "command", command = "'BXRIG' screensaver start", resume_command = "'BXRIG' screensaver stop", so coming back closes it; bxrig_lock is Noctalia's own action = "lock". Both count from the start of idle and respect idle inhibitors (a video, toggle stay-awake). The starter config.toml carries the section; a change is sent to a running Noctalia with noctalia msg config-set (reported as applied, not running or skipped). hypridle is no longer started or installed: BxRig never wrote a config for it.
  • Windows (Hyprland). start opens one terminal per monitor from hyprctl monitors -j, with the class bxrig-screensaver (ghostty, kitty, alacritty or foot, the xdg-terminals.list one first), through hyprctl dispatch exec "[monitor NAME] ..." and, when that fails, the Lua form hl.dsp.exec_cmd(CMD, { monitor = NAME }). The Hyprland module's window rule makes the class full screen with no animation, border, corners, shadow or blur. start does nothing when one is already open; stop kills the pids hyprctl clients -j gives for the class. With neither Hyprland nor Plasma, start exits 4.
  • Plasma (2026-11-18). ScreensaverPlasma: the idle watcher is a user service, ~/.config/systemd/user/bxrig-screensaver-idle.service, running swayidle -w timeout SECONDS "BXRIG screensaver start --idle" resume "BXRIG screensaver stop" (KWin implements ext-idle-notify-v1); on, off and set write, enable and restart it, or disable it, and name swayidle when it is missing (setup plasma installs it). start --idle first asks org.freedesktop.PowerManagement.Inhibit.HasInhibit and does nothing while something holds the screen awake, since KWin's idle timer has been reported to ignore inhibitors. start writes templates/kwin-screensaver.js to ~/.local/share/bxrig/kwin/, loads it once over D-Bus (org.kde.kwin.Scripting.loadScript, then start), and opens one terminal per enabled output from kscreen-doctor -j; the script sends each new bxrig-screensaver window to a screen without one, full screen, above everything, without a border, off the taskbar and switcher (a forced screen window rule is not applied when a window opens on Wayland, KDE bug 514357). stop kills the terminals pgrep -f finds by the class. The lock is Plasma's own: kscreenlockerrc [Daemon] Autolock and Timeout in whole minutes (rounded up), lock=0 sets Autolock=false; a running lock daemon is told with qdbus6 org.freedesktop.ScreenSaver /ScreenSaver configure (best effort). Not yet run on a real Plasma session: written against the KWin scripting API docs and checked with stubs.
  • UI. Menu System > Screensaver (start, preview, settings, on, off, three timings, logo reset); the Look page's Screen group (a switch and a timing choice: 2.5/5, 5/10, 10/20, 15/30 minutes); the wizard's Look page asks when it starts (2.5, 5 or 10 minutes, the lock at twice that, or off).
  • Tests: tests/screensaver_test.bxs (settings, the idle section, each effect drawn and read back, the loop's rules) and tests/screensaver-test.sh (the CLI, Noctalia and Hyprland stubs, the screensaver in a pty closing on a key and a mouse move).

Distributions (decided with the owner 2026-11-20)

  • Targets: CachyOS and Arch (pacman, AUR), openSUSE Tumbleweed and Slowroll (zypper), Ubuntu 26.04 LTS and Debian 13 (apt). util.Distro reads /etc/os-release (ID, ID_LIKE, VERSION_ID); BXRIG_DISTRO (arch, suse, debian, ubuntu) overrides it, and tests and CI set it to arch. An unknown system reads the Arch catalog, and setup and the installer refuse it.
  • Catalog split: catalog/apps.json (schema 4) says what an app is; catalog/install/DISTRO.json (schema 1) says how to install it: defaults (terminal), names (Arch package name to this distribution's, "" for none needed), repos (extra repositories, each with for packages, a check path under /etc, commands and files), and apps (source + targets, and on Arch repo/pkgbuild/aur_targets/script). extends merges names, apps and defaults from a parent; a child's repos replaces the parent's. ubuntu.json extends debian.json. Catalog.load(distro) merges the entry into each app; an app without one is in unavailable and is not offered. Web apps need no entry.
  • Sources: arch pacman aur pkgbuild script unresolved; suse zypper flatpak script; debian and ubuntu apt flatpak script. catalog check checks every install file (checkAll); catalog coverage reports offered and unavailable per distribution; catalog list|show --distro=D reads another one.
  • Package layer: util.Packages().native(proc, distro) gives Pacman, Zypper or Apt with one interface (install, remove, upgrade argv, installed, versions, search rows, pending updates). Arch names are translated through names everywhere setup and the installer name a package. Apt runs apt-get update before an install or upgrade.
  • Flatpak fallback: an app the distribution does not package is installed from Flathub with flatpak install --user; the plan adds flatpak itself and the Flathub remote when missing. Never as root.
  • Repositories: Debian 13 adds trixie-backports (Hyprland, its tools, quickshell; skipped when an apt source already names it, check_text, and its packages install with -t trixie-backports, release, so their newer libraries come from it too); Debian 13 and Ubuntu 26.04 add Noctalia's apt repository (pkg.noctalia.dev, keyring package then the suite's .sources file). Added only when a package in the plan needs them and their file is not there yet.
  • Defaults: Debian's terminal is kitty (no ghostty package); the rest use ghostty.
  • Arch-only: the AUR (pkg search --aur, pkg install --aur), kernel, the boot splash (mkinitcpio), xremap's install (configuration works once it is installed), Nerd Fonts packages (appearance font install exits 4 elsewhere).
  • catalog map DISTRO [--write] [--json]: run on that distribution; for each app tries the Arch names through names, then without -bin/-git/-desktop-bin/-electron, then Flathub by exact name; reports kept, found, flatpak, missing, and the Arch names BxRig installs itself that the distribution lacks. --write updates the install file. Exit 4 off that distribution.
  • Bootstrap: install.sh and web-install.sh pick pacman, zypper or apt-get from os-release; yay only on Arch.
  • Not done yet: the boot splash through dracut or initramfs-tools, xremap packages off Arch, Nerd Fonts off Arch, Packman codecs on openSUSE.
  • Tests: tests/distros_test.bxs (families, the backends' argv and parsers, names, the merged catalogs, repo steps) and the CI containers (Tumbleweed, debian:trixie, ubuntu:26.04: install, catalog check, setup hyprland --dry-run).
  • Checked on WebTop (2026-11-20): Debian 13 KDE and Ubuntu 26.04 KDE: install (apt), setup hyprland --yes (repos, packages, starter files), setup status, pkg search|info. setup plasma stops on Debian 13 (Plasma 6.3; HyprKwin needs 6.6). Flatpak installs could not run there (no user namespaces in the container).
  • Menu ids: every entry has an id, its labels as slugs joined by dots (appearance.bar.position.top); menu ids [--json] lists them. Menu.tree( true ) is the full tree with ids only (tests).
  • Ticks: an entry whose argv ends in a value (appearance bar position top) is ticked when the saved value for the argv before it matches (MenuState.current: Appearance state, theme mode, powerprofilesctl get). Nothing asks a running desktop.
  • Conditions: when on an entry (MenuTree.when): facts laptop, touchpad, touchscreen (udevadm ID_INPUT_TOUCHPAD|TOUCHSCREEN=1), webcam (/dev/video0), hyprland, plasma, hybrid-gpu (two PCI class 0x03 devices); installed:ID; ! negates; a,b is both. BXRIG_MENU_FACTS replaces detection. Install's catalog lists hide installed apps.
  • User menu file: ~/.config/bxrig/menu.json with add (under id, label, command program argv or bxrig argv, terminal), hide (ids), rename (id: label). Mistakes are warnings (menu items, menu file), never fatal. menu file --yes writes the example.
  • system restart shell|audio|wifi|bluetooth: plan until --yes. shell: pkill -x noctalia then setsid noctalia, or systemctl --user restart plasma-plasmashell.service; audio: user restart of wireplumber, pipewire, pipewire-pulse; wifi: rfkill unblock wifi, nmcli networking on, nmcli radio wifi on, rescan; bluetooth: rfkill unblock bluetooth, bluetoothctl power on.
  • system password: passwd on /dev/tty. system firmware [check|update --yes]: fwupdmgr refresh and get-updates (exit 2: none); update runs fwupdmgr update on /dev/tty. system speedtest network|disk: speedtest-cli --simple; dd 1 GiB with direct I/O in ~/.cache.
  • default editor neovim|vscode|zed|kate: xdg-mime default for text types and EDITOR/VISUAL in ~/.config/environment.d/50-bxrig-editor.conf.
  • share file|folder|clipboard [--to] | receive: localsend-cli send [--to DEVICE] PATH... on /dev/tty (LocalSend 1.18 CLI; the desktop app's --headless is not documented, so it is not used); a file chooser (kdialog, zenity) without paths; receive opens localsend.
  • input touchpad|touchscreen on|off|toggle|status: Hyprland hyprctl eval 'hl.device({ name, enabled })'; the disabled device name in ~/.local/state/bxrig/toggles/KIND-disabled.
  • wifi qr [--out]: WIFI:T:WPA;S:…;P:…;; from nmcli (-s -g 802-11-wireless-security.psk), escaped \ ; , : "; qrencode. The password is never printed as text or put in JSON.
  • gpu mode [status|hybrid|integrated --yes]: supergfxctl -g, -s, -m Hybrid|Integrated; GPUs from /sys/bus/pci/devices (BXRIG_PCI_DEVICES). Omarchy's Integrated-mode extras (a supergfxd start delay and a sleep hook) are not copied: unverified here.
  • record --webcam[=corner] --webcam-size: mpv with app id bxrig-webcam-CORNER-SIZE and title bxrig-webcam-overlay, started before wf-recorder and stopped with it (only when the recording started it: ~/.local/state/bxrig/record-webcam). The Hyprland module has 12 rules (4 corners × 3 sizes, 4:3, from the monitor height, 40 px margin, pinned, no initial focus).
  • Shortcuts added: tiled full screen, floating resize, groups, scratchpad (Super+Ctrl+S; Super+S is Save in the Mac style), zoom, close all, dismiss all notifications, media keys (playerctl, now part of setup hyprland), keyboard backlight. Delete, Home, End and the media and keyboard-backlight XF86 keys are valid key names.
  • Catalog: handbrake (Flathub on openSUSE: not in its main repositories) and speedtest-cli, both optional.
  • Not done: reminders, transcoding (HandBrake covers it), CJK input methods, translations.
  • dns bench [--json] (also system speedtest dns): dig @SERVER +tries=1 +time=2 +noall +stats NAME for five names, a warm-up round not counted, then the median of the second round ("Query time: N msec"; no answer is -1). Providers: the first IPv4 of the Cloudflare, Quad9 and Google presets, the router (domain_name_servers from nmcli -g DHCP4.OPTION device show), and your own servers when the connection uses some. data: { providers: [ { id, name, server, ms, current, fastest } ], current, fastest }. dig missing: exit 4 with the install line (bind, bind9-dnsutils, bind-utils). dns data gains provider (a preset id, dhcp or custom).
  • system speedtest last [--json]: the last result of each test, ~/.local/state/bxrig/speedtest-last.json = { network, disk, dns }, each stamped at (local ISO time). Only the latest is kept; every network, disk and dns run replaces its own.
  • Panels: the System panel (Noctalia bxrig/system) has a Network tab: Wi-Fi (wifi status) with Share Wi-Fi (wifi qr --out=~/.cache/bxrig/wifi-qr.png, shown in the panel), speed and disk cards with Test buttons, a DNS list (dns --json, system speedtest last --json) where a click runs dns ID --yes, and Open in Control Center (tui network). noctalia msg panel-toggle bxrig/system:panel network asks for that tab. The Quick panel's top row is Share Wi-Fi and Control Center.
  • Control Center: a Network page (after Ports) and a This computer row at the top of Storage (df on /, the last disk test, t runs system speedtest disk).

Accessibility (decided with the owner 2026-11-22)

  • accessibility [status] [--json]: data { zoom, zoom_level, reduce_motion, contrast }; everything off by default. State in ~/.config/bxrig/accessibility.json.
  • accessibility zoom on|off|status|in|out|toggle: in, out and toggle are what the keys run (Super+Alt+8, Super+Alt+Equal, Super+Alt+Minus, the Mac Option+Cmd keys). While zoom is off they print a hint and exit 0 without running anything. Steps of 0.5 between 1 and 10; toggle goes to 1 and back to the last zoom (2 when there is none). Hyprland: hyprctl eval 'hl.config({ cursor = { zoom_factor = N } })'. Plasma: qdbus6 org.kde.KWin /Effects org.kde.kwin.Effects.loadEffect zoom on on, and the kglobalaccel shortcuts view_zoom_in, view_zoom_out, view_actual_size of the kwin component. No Hyprland or Plasma session: exit 4 for the keys. The floating-resize keys moved to Super+Ctrl+Alt+Minus|Equal.
  • accessibility reduce-motion on|off|status: runs bxrig appearance animations off|on (Hyprland look.lua and Noctalia shell.animation.enabled), then gsettings set org.gnome.desktop.interface enable-animations false|true and kwriteconfig6 --file kdeglobals --group KDE --key AnimationDurationFactor 0|1 where those tools exist.
  • accessibility contrast dark|light|colorblind|off|status: bxrig theme set bxrig-contrast-dark|bxrig-contrast-light|bxrig-colorblind; the theme in use before is remembered and off sets it back (bxrig when none was recorded). The three themes keep every text colour (foreground, accent, muted, light_foreground and the six colours with their bright forms) at 7:1 or more on the background, checked by tests/accessibility_test.bxs. Neovim: projekt0n/github-nvim-theme (github_dark_high_contrast, github_light_high_contrast, github_dark_colorblind). Wallpapers: tools/gen-contrast-wallpapers.py.
  • Panels: a Control Center page (tui accessibility, after Themes), Appearance > Accessibility in the menu (ticked by MenuState), and a Zoom switch in the Quick panel (accessibility zoom status --json).
  • Not verified on a real desktop: the Hyprland cursor.zoom_factor call and the KWin D-Bus names were checked against their documentation only.

Fonts (decided with the owner 2026-11-22)

  • appearance font stays the coding font (terminals). It sets Noctalia's shell.font_family only while no interface font is set, so existing setups keep working.
  • appearance ui-font list|ID|install ID [--yes] is the interface font: Noctalia's shell.font_family and GTK's font-name. Plasma is left alone, with a note.
  • appearance font-rendering default|smooth|crisp|sharp|status writes one fontconfig file through ConfigService (backup and journal) and GTK's font-hinting and font-antialiasing. default removes only a file BxRig wrote.
  • Both are settings: they act at once, --dry-run shows the commands. Both are remembered in appearance.json (ui_font, rendering) and appearance status shows them.
  • JetBrains Mono stays the default coding font; Inter is the recommended interface font.

Developer tools (decided with the owner 2026-11-22)

  • Catalog: Postman, Insomnia and Bruno (API clients; AUR on Arch, Flathub elsewhere); kubectl, k9s, Helm, OpenTofu, AWS, Google Cloud and Azure CLIs (a new cloud profile); atuin and just. No other shell tools. Every package name was checked on each distribution; one that is not packaged is not offered.
  • git signing status|on|off [--key=PATH]: SSH signing only. on and off change ~/.gitconfig, so they print a plan until --yes. on needs the key and git user.email (exit 4 with the fix). off keeps the key and the allowed signers file. The wizard offers on after the SSH key, as an optional step.
  • doctor --dev: a developer group (git identity, SSH key, SSH agent, signing, container engine, EDITOR). Its rows are advice (warn, advice: true) and never change the exit code.

BoxLang runtime (decided with the owner 2026-11-22)

  • Built on the tools BoxLang ships, never a copy of them: bvm for versions, the quick installer (install-boxlang) when there is no bvm, bx-module for modules. Their text output is parsed leniently; the parsers are tested on real output kept in tests/fixtures/boxlang.
  • boxlang check: the installed version comes from the jar next to the boxlang launcher (no runtime start), the latest from downloads.ortussolutions.com version-latest.properties, modules from bx-module outdated. That command asks "update now?" on /dev/tty, so BxRig runs bx-module under setsid (no controlling terminal) and the question fails instead of waiting. Exit 10 when BoxLang or any module is behind, as update check.
  • boxlang update prints a plan until --yes. modules remove too; modules update and modules install keep running at once (as before), and honour --dry-run so the Control Center can show its plan.
  • boxlang home: BOXLANG_HOME, else ~/.boxlang. run and repl hand the terminal to boxlang and return its exit code.
  • No new, test or CommandBox commands here: those stay in CommandBox and bx-cli.
  • The scheduled checks (new BoxLang versions, module updates) arrive with the scheduler; until then the System panel's BoxLang tab checks while it is open.

BoxLang servers (decided with the owner 2026-11-22)

  • boxlang servers, not a new namespace: list, status, add, scan, remove, start, stop, restart, log, open, folder. No new, test or CommandBox server settings: those stay in CommandBox.
  • The registry holds only name, path and kind; port, host and web root are read from the app's own miniserver.json or server.json each time. A folder with both is a MiniServer app.
  • MiniServer apps run detached (setsid boxlang-miniserver miniserver.json), the pid and log under ~/.local/state/bxrig/servers. CommandBox apps go through box server start|stop|log directory=PATH (CommandBox or bx-cli).
  • Running means the port is listening (ss -ltnpH, else /proc/net/tcp). scan skips node_modules, boxlang_modules, modules and hidden folders and is a plan until --yes; add and remove act at once (BxRig's own file only); start and stop act at once and honour --dry-run.
  • The Developer panel gets two tabs: BoxLang (the servers) and Ports (tui ports --json without the system's own).

Scheduler (decided with the owner 2026-11-22)

  • One scheduler for everything BxRig runs on a timer: a BoxLang scheduler class run by boxlang schedule in the user service bxrig-scheduler.service. Groups, pause and resume per group, a history and stats per task.
  • The tasks live in ~/.config/bxrig/schedule.json. BxRig writes the runner (one fluent call per task: every, everyHour, everyDayAt, onWeekdays, ons, cron) on every change and restarts the service. A 5-field cron() did not fire on BoxLang 1.19, so cron ... is documented as needing 1.20.
  • The JVM only dispatches: every run is bxrig scheduler exec NAME, which runs the command, records it (history/NAME.jsonl, last 500) and notifies. The runner writes each task's getStats() (with next_local and last_local on this machine's clock) for the next run time.
  • install is a plan until --yes. It adds update-check, backup-data (when backups are scheduled) and boxlang-check, and turns off bxrig-update-check.timer and bxrig-backup.timer; from then on update notifications and backup data schedule change those tasks. Without BoxLang the timers stay as they were.
  • Exit 10 from a task is "needs attention" where the task lists 10 in ok_codes (update-check, boxlang-check); notify modes are failure (default), attention, always and never.

Task manager (decided with the owner 2026-11-22)

  • The Control Center Tasks page reads scheduler list --json: a mark per last result, next run, a sparkline of the recent runs. Enter is scheduler show, r run, p disable/enable, g pause/resume the group, a add (three questions), x remove (not for built-in tasks). A first row offers install when the scheduler is not running.
  • scheduler show adds the trend: a sparkline of the last 30 durations and a mark per result.
  • The System panel's Tasks tab and the bar share the failure count through noctalia.state (taskFailures); the bar reads scheduler --json with the updates every 10 minutes and draws a red dot while a task fails.
  • doctor --dev has a scheduler row (installed, no task failing); init has an optional scheduler step.

Calendar (decided with the owner 2026-11-22)

  • bxrig calendar keeps calendars on this machine with vdirsyncer: an iCal address (read only, collections = null, webcal:// fetched as https://) or Google Calendar (google_calendar storage, collections discovered, OAuth on the first sync in a terminal). The user's own vdirsyncer config is never touched: BxRig writes ~/.config/bxrig/vdirsyncer/config (mode 600, it holds the Google client secret) and passes it as VDIRSYNCER_CONFIG. The registry is ~/.config/bxrig/calendars.json; the events are .ics files in ~/.local/share/bxrig/calendars/NAME.
  • calendar agenda reads those files with bxrig.Ical (pure: VEVENT, all-day dates, UTC times moved by date +%z, TZID and floating times as local, DURATION, RRULE DAILY/WEEKLY with BYDAY/MONTHLY/YEARLY with INTERVAL, COUNT, UNTIL, EXDATE, cancelled events left out).
  • bxrig remind TEXT --at|--in keeps reminders in ~/.config/bxrig/reminders.json; remind due shows the ones whose time has come as critical notices, once each.
  • The scheduler owns the timing: calendar-sync every 15 minutes and reminders every minute, added by the first calendar or reminder when the scheduler is installed, and by scheduler install when calendars or reminders exist. Scheduler.upsert never adds a task twice.
  • The Clock panel shows the agenda of today and tomorrow and the reminders still to come under the world clocks, with a check button per reminder.

Launcher (decided with the owner 2026-11-22)

  • bxrig launcher makes Vicinae BxRig's launcher. setup is a plan until --yes: runner set vicinae and runner menu-set vicinae, the theme written and selected with vicinae theme set bxrig, the script commands written, and vicinae server started when vicinae ping fails. Vicinae's settings.json (JSONC, the user's) is never edited.
  • The theme is a generated file of theme set like the others: ~/.local/share/vicinae/themes/bxrig.toml (meta version 1, name, description, variant; colour keys only from Vicinae's theme parser's RECOGNIZED_KEYS). Vicinae watches the folder; theme set selects it again only while Vicinae is the launcher.
  • Script commands are ~/.local/share/vicinae/scripts/bxrig/*.sh, rewritten by launcher scripts --yes; a file BxRig no longer offers is deleted, other folders are not touched. Each sets BXRIG to this BxRig (BXRIG_SELF) and runs one command.
  • launcher files [QUERY] opens vicinae://launch/files/search with fallbackText. The Vicinae menu uses vicinae dmenu --placeholder (it has no --prompt).

13.67 BoxLang agents: ai agents (decided with the owner 2026-11-24)

bx-agents has a full command line (bxAgents, every verb on one project: the current folder or --projectRoot), so BxRig does not repeat it (AiAgentHub.bx). It adds only what bx-agents leaves to the machine. Where things live is bx-agents' own convention: an agent's data in ~/.bxagents/<name> (outside the project, so a build never replaces it), the person's settings in ~/.bxagents/Agent.yml. BxRig keeps its list in ~/.config/bxrig/agents.json (root, default, entries: [ { path, port, added } ]).

CommandDoes
ai agents [list]the projects: every folder of the projects folder with an Agent.yml or Agent.bx, then the ones added by path; name (the top-level name: of Agent.yml, else the folder), port, running, default
ai agents install\|update [--snapshot\|--stable] [--yes] [--dry-run]bx-module install bx-agents@snapshot (the default for now), or @VERSION for --stable: the newest ForgeBox version without snapshot (exit 4 while there is none). Then /tmp/boxlang-jars is deleted, always, and the bxrig profile written. update also restarts the agents that run. Plan without --yes
ai agents new NAME [flags]bxAgents new NAME [flags] in the projects folder, the terminal handed over (its own wizard). The name: letters, digits, - and _, not a command word, not taken
ai agents NAME VERB [args]bxAgents VERB --projectRoot=PROJECT [args], exactly as typed (from the raw arguments), the terminal handed over, its exit code. Its flags are not checked against cli.json
ai agents start\|stop\|status NAMEthe user unit bxrig-agent-NAME.service
ai agents open NAME / default [NAME]its web page (xdg-open, only while it runs) / the default agent (for the keyboard shortcut, PR 11b)
ai agents dir [PATH] / add PATH / forget NAME [--yes]the projects folder (BXRIG_AGENTS_DIR, else dir, else ~/Agents) / a project elsewhere (refused when its name is taken: the data folder is chosen by name) / out of the list, its unit removed, the project and its data kept
ai agents profile [--off]the bxrig profile alone
  • Ports: from 8790, one per project path, kept; a freed one is used again.
  • The unit: ExecStartPre=bxAgents build --projectRoot=P --no-banner, then ExecStart=/bin/sh -c "cd .build && BOXLANG_HOME=P/.build/runtime exec boxlang-miniserver --port N --host 127.0.0.1", with Environment=BXRIG_SELF=PATH (BxRig's full path, for the agent's tools: a user service's PATH may not have ~/.local/bin) and Restart=on-failure. BOXLANG_HOME is set on the server's line only: set for the whole unit (as in PR 11) it reached the build step too, which then found no bx-agents module (measured, fixed in 11b). Not bxAgents serve: it starts the miniserver and exits 0 (measured), which systemd takes for the end of the service and stops the server with it. Running the miniserver in .build with the miniserver.json the build wrote is what bx-agents' deploy targets do; the flags win over the file. WorkingDirectory is the project, because .build does not exist before the first build and systemd checks the folder first.
  • The jar cache: BoxLang copies module jars to java.io.tmpdir/boxlang-jars (DynamicClassLoader.copyJarsToTemp, BL-2629) named by path and modification time, and reuses a copy that exists. bx-module install keeps the zip's 1980 dates, so a reinstalled jar would load the old copy (measured: NoMethodException on a method the new jar has). It is deleted after every install (BXRIG_BOXLANG_JARS names another folder).
  • Test hooks: BXRIG_BXAGENTS (the bxAgents launcher, else BOXLANG_HOME/bin/bxAgents, else the PATH), BXRIG_MINISERVER (boxlang-miniserver, else the PATH), BXRIG_FORGEBOX_API (default https://forgebox.io/api/v1).
  • The bxrig profile: in ~/.bxagents/Agent.yml, a marked block (# >>> BxRig local AI ..., # <<< BxRig local AI <<<) with profiles.bxrig = { description, provider: openai-compatible, model: ACTIVE, options.baseURL: BASE/v1 }. bx-agents layers that file over every agent at build and at start (SettingsLayers), mappings by key, so an agent uses BxRig's model with profile: bxrig. A file with a profiles: of its own is not rewritten (the lines to add are given). ai models use rewrites the block when it is there; it is never added unasked. Checked for real: profile:, providers.openai-compatible.options and a top-level options all reach the local server, from invoke and from the served app.
  • Control Center: ai-boxlang (BoxLang agents, after Agents): ai agents --json; Enter the chat in a new terminal (setsid -f TERMINAL bxrig ai agents NAME chat), o web page, s start or stop, d default, l journalctl --user -u UNIT, i install or update. Bar: the Agents panel's BoxLang tab (boxlang.luau).
  • Java's home is not $HOME: bx-agents reads user.home, which comes from the account, so a test that changes HOME sets BXAGENTS_USER_CONFIG too.
  • Tests: tests/ai_agents_test.bxs (pure), tests/ai-agents-test.sh (fake bx-module, bxAgents, systemctl, curl and xdg-open). Checked for real against bx-agents 1.0.0-snapshot (2026-11-24) and BoxLang 1.20.0-snapshot: install, new, build, invoke and models list through the pass-through, the unit's two commands, the served /__bxagents/invoke answering through the bxrig profile. Not yet on a real desktop: the interactive chat hand-over, a real systemd user session, the terminal opened from the Control Center and the bar tab in Noctalia.

13.68 Boxy, the desktop assistant (decided with the owner 2026-11-25)

Boxy is a bx-agents project BxRig ships as a template (templates/agents/boxy/: Agent.bx, instructions.md, tools/BxRig.bx, packed with the binary). It is an Agent.bx (the class form) because a class can add bx-ai's approval step; an Agent.yml can not for its own tools.

CommandDoes
ai agents setup [--no-start] [--yes] [--dry-run]writes the template to PROJECTS/Boxy (refused when Boxy or the folder exists), writes the bxrig profile when it is missing, makes Boxy the default agent and starts it. Plan without --yes. Named setup, not boxy: words are compared without case, so boxy would have shadowed bxrig ai agents Boxy VERB
ai agents chat [NAME] [--window]bxAgents chat --projectRoot=P, plus --connect=http://127.0.0.1:PORT when the agent runs (one agent for the chat, the web page and the bar); --window opens a terminal (Ai.terminal()) that runs it, for the shortcut. No NAME: the default agent
ai agents open [NAME]as before; no NAME: the default agent
ai agents ask TEXT [--agent=N] [--thread=T]POST /__bxagents/invoke { input, threadId } (the field is input: a body with message reaches the model as an empty question) to the running agent; { answer, thread, pending: [ { tool, args } ] }. The thread is bxrig- and 12 hex digits unless given
ai agents approve\|reject THREAD [--agent=N] [--session]POST /__bxagents/resume { threadId, decision } (approve, approve_session, reject); the stream is read for the tools that ran (tool frames with status: ok), the answer (chunk frames: choices[1].delta.content) and what it waits for next (suspended)
ai agents skills [NAME] [show\|approve\|remove SKILL] [--all] [--yes]the skills the agent saved in ~/.bxagents/NAME/skills/*/SKILL.md (name and description from the front matter). Reviewed means the SHA of SKILL.md matches the one kept in agents.json reviewed when you approved: saving over it flags it again. A flagged skill stays active (owner's choice). remove deletes the folder, plan first
  • The approval step: Agent.bx calls withCheckpointer( aiMemory( memory: "cache" ) ) before withMiddleware( new HumanInTheLoopMiddleware( toolsRequiringApproval: NEEDS_OK, mode: "web" ) ); without the checkpointer first the class does not load (measured: "HumanInTheLoopMiddleware is attached to mode web ... but the agent has no checkpointer"). Verified for real: the run pauses before the tool runs, /pending names it, /resume approve runs it, reject does not.
  • The tools: 36 @AITool functions in tools/BxRig.bx, each bxrig ARGS --json through systemExecute, BXRIG_SELF else bxrig; the model gets the envelope's data as JSON (cut at 6000 characters) or what failed. The 19 that change something are in NEEDS_OK and pass --yes where the command asks for it (the approval was the plan). Argument descriptions come from the doc comment (@arg text); no argument is called name.
  • Model: the bxrig profile (configure() returns { profile: "bxrig" }), which now sets options.timeout: 300 (measured: Qwen3.5 4B on 4 CPU cores took over 90 s, bx-ai's default, for its first answer with the 36 tools). Measured on 2026-11-25 against the served Boxy: Qwen3.5 0.8B listed the themes, asked for night_light_set {state: on} and reminder_add {stretch, 30m}, and once proposed an unasked brightness_set (held by the approval); Qwen3.5 4B listed the 24 themes from theme_list and asked for night_light_set {state: on}.
  • Shortcuts: agent-chat Super+Period (ai agents chat --window), agent-web Super+Shift+Period (ai agents open), both styles, Hyprland.
  • Setup: the wizard's AI page asks boxy (now by default, later); init then runs ai agents install --yes and ai agents setup --yes, both optional, after ai-setup.
  • Bar: the Agents panel's Boxy tab (boxy.luau): the default agent with Start or Stop, Chat, Web, Ask with Approve and Reject, the count of skills to review with Review; Make Boxy when there is none.
  • Tests: tests/ai_agents_test.bxs and tests/ai-agents-test.sh (the template copied as is; chat stopped and running; --window; ask, approve, reject and --session against a fake agent API; the skill review), tests/init_plan_test.bxs (the two steps and their order). Checked for real against bx-agents 1.0.0-snapshot and BoxLang 1.20.0-snapshot: Boxy made from the template, built and served by its unit, its read-only tools answering from real bxrig output, changing ones waiting; ask, approve and reject against a served agent. Not yet on a real desktop: the chat in a terminal from the shortcut, a real systemd user session and the bar tab in Noctalia.

13.69 mcp: BxRig's tools for any coding agent or editor (decided with the owner 2026-11-25)

The tools are Boxy's own (templates/agents/boxy/tools/BxRig.bx, 36 @AITool functions, each bxrig ARGS --json). The server runs on JVM BoxLang with bx-ai, which bx-agents installs (the owner's choice over a server written in BxRig: one tools file, and the MCP protocol kept by bx-ai). bx-ai's MatchBox build (bx-ai PR #341) was tried on 2026-11-25 and did not yet serve over stdio; serve can move to it later without changing the commands.

CommandDoes
mcp [--json]the server (ready when bx-agents is installed) and each of the 16 agents and editors: installed, linked read-only, write or not
mcp toolsthe tools from the @AITool lines; the ones that change something are Boxy's NEEDS_OK list in its Agent.bx (19), the rest read (17)
mcp serve [--write]what an agent starts: writes serve.bxs, BxRig.bx and changing.json to DATA/mcp when they differ, then runs boxlang serve.bxs there with BXRIG_SELF (BxRig's path, for the tools) and BXRIG_MCP_WRITE. serve.bxs registers aiToolRegistry().scanClass( new BxRig() ) (bx-ai's own @AITool scan, which keeps the parameters) on mcpServer( "bxrig" ), without the changing tools unless BXRIG_MCP_WRITE=1, and calls MCPRequestProcessor::processStdio. Without bx-agents: the reason on standard error, exit 4, nothing on standard output
mcp link [AGENT...] [--write] [--yes]adds BXRIG mcp serve [--write] (BxRig's absolute path) to each named agent, else to every installed one. Plan without --yes
mcp unlink [AGENT...] [--yes]takes it out of each named agent, else of every linked one
  • Where: Claude Code (claude mcp add --transport stdio --scope user bxrig -- ..., claude mcp get|remove bxrig --scope user) and Codex (codex mcp add bxrig -- ..., get, remove) by their own commands; the rest in their own files (paths in the guide): mcpServers.bxrig (Gemini CLI, Pi, Qwen Code, Antigravity, Cursor with type: stdio, Kiro with disabled: false, Copilot with type: local and tools: ["*"]), "amp.mcpServers" (Amp), mcp.bxrig { type: local, command: [ ... ], enabled } (OpenCode, the V1 shape V2 reads), context_servers (Zed), servers with type: stdio (VS Code), a marked [mcp_servers.bxrig] table (Grok Build), a marked mcp add bxrig --command ... --args ... line (Crush's crushrc), a marked entry under extensions: (Goose's YAML; an inline extensions: {} becomes a block, any other inline form is refused). Formats from each agent's docs, read 2026-11-25.
  • Files with comments: Zed's and VS Code's settings allow them; there BxRig's key goes in as a // BxRig MCP server block after the line with the first {, and unlink gives the file back byte for byte. Other agents' JSON with comments is refused. An agent BxRig picked itself is left out with the reason (skipped); a named one is a precondition (exit 4). The old file is kept as FILE.bxrig-backup.
  • Until bx-ai's stdio fix ships (bugs found here: log lines on standard output, an error answer to notifications/initialized, @mcpTool scans without parameters; a separate session fixes them in bx-ai), serve pipes the server through grep "^{" and drops the Method not found: notifications/ line, so only MCP messages reach the agent.
  • Measured 2026-11-25 with bx-agents 1.0.0-snapshot (bx-ai 3.8.0-snapshot): the server starts in about 1.5 to 2.7 s, lists 17 tools read-only and 36 with --write, answers theme_list from the real bxrig theme list --json, and refuses theme_set read-only (Tool not found).
  • Tests: tests/mcp_test.bxs (the tools and NEEDS_OK, every format added and taken out again, JSON with comments, inline YAML), tests/mcp-test.sh (fake agents and a fake MCP server: plans, link by name and all, --write, a left-out agent, unlink giving files back, what reaches standard output, serve without bx-agents).

13.70 privacy: what leaves this machine (decided with the owner 2026-11-25)

A report and two switches (the owner chose both). Facts per agent from each agent's docs, read 2026-11-25: where its model runs, whether BxRig can point it at the local server (or why not), its telemetry switch (or how to turn it off when BxRig can not), and the folder of its chats. An agent with no documented switch is said to have none; BxRig does not guess one.

CommandDoes
privacy [--json]BxRig's AI server; each installed agent (runs, local: on, possible or no with why); stored keys by name (the secrets backend) and provider keys set in the environment (never a value); the MCP servers in each agent's config (this machine for a command, web: HOST for a URL); each agent's telemetry (off, on, or no switch with how); the chat folders that exist and ~/.bxagents; cloud_agents
privacy local-only [--off] [--yes]adds BxRig's local server (its chat models, 127.0.0.1 only) to OpenCode (as bxrig ai link opencode --default), Crush (as bxrig ai link crush), Pi (providers.bxrig in ~/.pi/agent/models.json, api: openai-completions, a placeholder key Pi asks for), GitHub Copilot CLI (a bxrig provider and its models in ~/.copilot/providers.json) and Goose (~/.config/goose/custom_providers/bxrig.json); --off takes them out (Goose's file is removed). Every other agent says why it stays. Needs the server on 127.0.0.1 with a chat model (exit 4)
privacy telemetry off\|on [AGENT...] [--yes]off: Claude Code env.DISABLE_TELEMETRY and env.DISABLE_ERROR_REPORTING = "1" in ~/.claude/settings.json; Codex a marked [analytics] enabled = false; Gemini CLI and Qwen Code privacy.usageStatisticsEnabled: false; Pi enableInstallTelemetry: false; Goose a marked GOOSE_TELEMETRY_ENABLED: false; Kiro kiro-cli settings telemetry.enabled false; Zed telemetry { diagnostics, metrics } false (a marked block when the file has comments); VS Code telemetry.telemetryLevel: off. on takes BxRig's settings out again (each agent's own default). A setting of yours in the way is left to you
  • Control Center: the Privacy page (bxrig tui privacy, after Secrets): one row per AI, key, MCP server, telemetry switch and data folder; a cloud agent that could be local and a web MCP server are flagged; l/L local-only on/off, t/T telemetry off/on. Bar: a Privacy button in the Agents panel's Agents tab opens it.
  • util.Marked holds the shared pieces for files someone else owns: a marked block cut and read, JSON set, unset and get by path, JSON with comments (comments stripped for checks; a block inserted after the first { line).
  • Tests: tests/privacy_test.bxs (the facts, every telemetry format and back, the local providers and back, MCP servers by command or URL, the page rows and keys, util.Marked), tests/privacy-test.sh (fake agents: the report with no key value, plans, telemetry off and back on, local-only on and off, its preconditions).

13.71 android: Android apps with Waydroid (decided with the owner 2026-11-25)

Opt-in at every level (the owner's rule): a default install and init do nothing about it; the wizard's Android question (Containers page) defaults to no; every command that changes something is a plan until --yes. Formats and commands from Waydroid's source and docs, read 2026-11-25 (tools/actions/status.py, app_manager.py, docs.waydro.id command-line options, install and Google Play certification pages).

CommandDoes
android [--json]the state: supported, wayland, binder (ok, how), installed, initialized, image (GAPPS, FOSS, VANILLA), session, container, running, ip. Text says it is off and how to turn it on when it is not set up
android setup [--vanilla] [--yes] [--dry-run]plan, then the steps in order, on the terminal (sudo asks, the download shows its progress): Debian and Ubuntu add curl -s https://repo.waydro.id \| bash as root; waydroid through the distribution's package manager (Packages.installArgv); sudo waydroid init -s GAPPS (VANILLA with --vanilla, -f when another image is already there); sudo systemctl enable --now waydroid-container.service; the session in the background (setsid -f waydroid session start). Steps already done are left out; it stops at the first one that fails and a rerun continues. Refused with exit 4 and the reason on openSUSE (no package), without a Wayland session, or without binder
android start / stopwaydroid session start in the background and wait up to 25 s for Session: RUNNING; waydroid session stop. They act at once (they start or stop a program)
android appswaydroid app list parsed (Name:, packageName:, tab-indented categories), by name. Needs it running (exit 4)
android open [APP]no APP: waydroid show-full-ui. An APP is a package name, an app's name in any case, or a part of a name that matches one app (a part matching several is a usage error listing them). Starts Android first when it is stopped
android install FILE.apk [--yes]waydroid app install FILE after a plan; a file that is not an .apk or does not exist is a usage error. The app has to support x86_64
android register [--open]the Android ID from sudo waydroid shell -- sh -c "sqlite3 /data/data/*/*/gservices.db 'select value from main where name = \"android_id\";'" (Waydroid's Google Play certification page), the page to register it (https://www.google.com/android/uncertified, opened with --open) and what to do next (wait, stop, start). Only on the Google Play image; exit 4 before Play created the ID
android remove [--data] [--yes]plan, then: stop the session, sudo systemctl disable --now waydroid-container.service, remove the package. --data adds one sudo rm -rf of Waydroid's own folders that exist (/var/lib/waydroid, ~/.local/share/waydroid, ~/waydroid, ~/.waydroid), worded as DELETE in the plan
  • Binder: the kernel config (zcat /proc/config.gz: CONFIG_ANDROID_BINDER_IPC=y or =m), binder in /proc/filesystems (binderfs), or an installed binder_linux module. When it is missing BxRig names binder_linux-dkms (AUR) and does not install a kernel module itself.
  • Test hooks: BXRIG_WAYDROID_DIR (default /var/lib/waydroid, where waydroid.cfg says which image) and BXRIG_PROC_FILESYSTEMS.
  • Control Center: the Android page (bxrig tui android, before Logs): off (a note and S for the setup plan), or the state row and one row per app (Enter open, s start or stop, r register). Catalog: waydroid is an optional app on Arch only (extra); Debian and Ubuntu get it through the repository setup adds. Wizard and init: the android question (no by default) and, on yes, one optional step bxrig android setup --yes.
  • Tests: tests/android_test.bxs (the parsers, binder, the plan for Arch, Debian and Ubuntu, picking an app, the page, the wizard question and init step) and tests/android-test.sh (a fake Waydroid that keeps its state in files, fake sudo, pacman and systemctl: off by default, the plan, the steps in order, apps, open, install, register, stop and start, replacing the image, remove with and without --data, what refuses setup). Not tested on a real machine: there is no binder and no Wayland session in the test environment, so the first real run (Waydroid's own start, the Google Play image, registration) is on the owner's machine.

13.72 boxy: Boxy's character and voice (decided with the owner 2026-11-25)

Everything is opt in. A default install shows Boxy in its own colours and does nothing with a microphone or a speaker. Voxtype's commands are from its README and manual (voxtype record start|stop, --output-file), the release bind from Hyprland's Lua binds ({ release = true }), read 2026-11-25.

CommandDoes
boxy [--json]Boxy now: its text sprite, name, colour, outfit, state, the image for that state, and the speech setting
boxy look [--name=N] [--color=theme\|#RRGGBB] [--outfit=auto\|none\|ID] [--holidays=LIST\|none] [--birthday=MM-DD]changes how Boxy looks, saved in ~/.config/bxrig/boxy.json. Bad values are exit 2. --color=theme (the default) follows the active theme's accent; an outfit ID is beanie, flower, sunglasses, leaf, santa, pumpkin or party
boxy export [--dir=D]the four state images (idle, listening, working, speaking), as PNG when rsvg-convert or ImageMagick is there, else SVG
boxy state [--json]what Boxy is doing and the image for it (made again first when the look changed)
boxy listen start\|stop\|togglehold to talk: voxtype record start --output-file F, then voxtype record stop, the words go to the default BoxLang agent (thread bxrig-voice), the answer comes as a desktop notice and, when speech is on, aloud. Exit 4 without Voxtype
boxy say TEXTspeaks the text through the speech setting. Exit 4 when it is not set up or no player is found
boxy voice [on\|off\|set]speech is off until set has a URL and model and on is run. set --url=U --model=M --voice=V [--key=SECRET_NAME] [--format=wav\|mp3\|opus\|flac]. Any OpenAI-compatible /v1/audio/speech server: a cloud provider, or a local one later
  • The outfit in auto: the season (beanie Dec to Feb, flower Mar to May, sunglasses Jun to Aug, leaf Sep to Nov); the holiday outfits (christmas Dec 20 to 26, halloween Oct 24 to 31, newyear Dec 31 to Jan 2) only for the holidays you list with --holidays; the birthday outfit on the day you set. Test hook: BXRIG_TODAY=YYYY-MM-DD.
  • Never by voice: approving something Boxy wants to change stays on screen. A pending approval only produces a notice that says so.
  • What leaves the machine: nothing, until speech is on. With speech on, each answer read aloud is sent to the speech server (the privacy report says where; a server on this machine is shown as such). The key is a stored secret name or an environment variable, passed to curl in a mode 600 config file that is deleted after the call, never on the command line.
  • The key: Super+Comma (the traditional style; Super+Ctrl+Slash in the Mac style, where Super+Comma is Preferences) and the Copilot key (Super+Shift+F23): the press starts listening, the release ({ release = true }) sends. Four rows in keys show; a press and its release do not count as a conflict.
  • Surfaces: the Boxy page in the Control Center (bxrig tui boxy, before Android: Boxy's sprite, the speech row, and the outfits, Enter puts one on, v speech, e images), the Boxy tab of the bar's Agents panel (the picture for what it is doing and a Talk button), and the sprite in bxrig boxy. The art is concept D, the antenna bot (owner, 2026-11-26): the antenna tip is the BoxLang swirl, lit and turning while it works (four pictures, frames in boxy and boxy state; the bar turns them once a second). The tab also has Chat, Web and Logs, which open bx-agents' own chat (bxrig ai agents chat), web page and log viewer (bxrig ai agents NAME logs --ui); BxRig keeps no history of its own. The state file is ~/.local/state/bxrig/boxy-state.json; a state nothing updated for three minutes reads as idle.
  • Tests: tests/boxy_test.bxs (the calendar, colours, the four images and the sprite, the page, the bar source) and tests/boxy-test.sh (a fake Voxtype, notify-send, curl and player: the look and the outfit by date, export, speech off by default and never sent before it is on, the key kept off the command line, hold to talk, silence, no Voxtype). Not tested on a real machine: a real microphone, Voxtype's service, the Hyprland release bind and Noctalia's image drawing.
Edit this page Download Markdown Last updated Nov 26, 2026, 11:34:14 AM Report an issue