Command contract
Developer reference.
On this page
- 1. Grammar
- 2. Mutation rules (apply to every mutating verb)
- 3. Exit codes
- 4. --json
- 5. Catalog (single source of truth)
- 6. State and config layout
- 7. Test contract
- 8. Catalog check, validation and reporting
- 9. Open questions
- 10. Implemented so far (2026-11-09)
- 11. Package commands on the catalog (B2, decided 2026-11-09)
- Selection
- Per-source steps
- Result shape ( --json , inside the section 4 envelope)
- Open questions
- 12. Implemented so far, B2 (2026-11-09)
- 13. Desktop setup (decided with the owner 2026-11-09 and 2026-11-10; all built)
- 13.1 Commands
- 13.2 setup plasma (HyprKwin)
- 13.3 setup hyprland
- 13.4 Shortcuts, keys and setup xremap
- 13.5 Look and starter configs
- 13.5b Shell and terminal (decided 2026-11-10)
- 13.6 Brand assets
- 13.7 session
- 13.9 runner : the launcher abstraction (port of the legacy bxrig-runner )
- 13.10 db : local databases and search engines as containers (port of the legacy bxrig-db and bxrig-vector )
- 13.11 dotfiles : your own dotfiles repository (decided with the owner 2026-11-11)
- 13.12 Apps: Basic or Customize, and your defaults (decided with the owner 2026-11-11)
- 13.8 Tests and what is verified
- 13.13 Secrets: one way to store and load API keys (decided with the owner 2026-11-11)
- 13.14 AI agents (decided with the owner 2026-11-11)
- 13.15 SSH key and Plasma keyboard layouts (decided with the owner 2026-11-12)
- 13.16 Control center menu (decided with the owner 2026-11-12)
- 13.17 Podman helpers, docker compatibility and the LazyVim starter (decided with the owner 2026-11-12)
- 13.18 Desktop utilities: clipboard history and screen recording (decided with the owner 2026-11-12)
- 13.19 Shortcut editor (decided with the owner 2026-11-12)
- 13.20 Web apps, NordVPN setup and remote desktop (decided with the owner 2026-11-12)
- 13.21 Runtime controls and cloud storage (decided with the owner 2026-11-12)
- 13.22 All apps window, answers to take to another machine, snapshot GUIs (decided with the owner 2026-11-12)
- 13.23 Layouts per desktop (decided with the owner 2026-11-12)
- 13.24 System-aware wizard and status
- 13.25 Strata, dictation, Quick Look, Dolphin doctor (decided with the owner 2026-11-12)
- 13.26 Cheat sheet, screenshots, notifications (decided with the owner 2026-11-12)
- 13.27 Four workspaces and the Plasma panel layout (decided with the owner 2026-11-12)
- 13.28 Web app bundles, databases, BoxLang ecosystem (decided with the owner 2026-11-13)
- 13.29 Mac-style extras (decided with the owner 2026-11-13)
- 13.30 One-line installer, update channels, updates and notifications (decided with the owner 2026-11-13)
- 13.31 Agent skills and the documentation site (decided with the owner 2026-11-13)
- 13.32 Themes, the Neovim layer and the Starship BoxLang module (decided with the owner 2026-11-13)
- 13.33 Virtual machines: Windows and Linux desktops in containers (decided with the owner 2026-11-13)
- 13.34 The menu, package search and remove (decided with the owner 2026-11-13)
- 13.35 Appearance (decided with the owner 2026-11-13)
- 13.36 Display and the developer defaults (decided with the owner 2026-11-13)
- 13.37 Power (decided with the owner 2026-11-13)
- 13.65 Input devices: Apple Magic and Logitech (decided with the owner 2026-11-17)
- 13.38 Time zone (decided with the owner 2026-11-13)
- 13.39 Toggles, DNS, kernels and security (decided with the owner 2026-11-13)
- 13.40 The command reference and bxrig help (decided with the owner 2026-11-13)
- 13.41 NAS as a first-class namespace (decided with the owner 2026-11-13)
- 13.42 refresh and reinstall (decided with the owner 2026-11-13)
- 13.43 Backups: the config layer (decided with the owner 2026-11-13)
- 13.44 BxTimeMachine, the backup screen (decided with the owner 2026-11-13)
- 13.45 The backup pages of the wizard (decided with the owner 2026-11-13)
- 13.46 The TUI kit and the Control Center (decided with the owner 2026-11-13)
- 13.47 Java, Maven and Gradle (decided with the owner 2026-11-14)
- 13.48 The mail catcher (decided with the owner 2026-11-14)
- 13.49 The rename to BxRig (decided with the owner 2026-11-14)
- 13.50 One Control Center, one page at a time (decided with the owner 2026-11-14)
- 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
- 14.2 bxrig init
- 14.3 Pages, answers and what they run
- 14.4 Rules
- 14.5 Tasks
- 13.51 Pictures in the TUIs (decided with the owner 2026-11-14)
- 13.52 The Apps manager (decided with the owner 2026-11-14)
- 13.53 Shared helper classes (decided with the owner 2026-11-14, code review refactor)
- 13.54 The second shortcut round: browser, files, webcam, quake console, recording with audio, Hardware menu (decided with the owner 2026-11-15)
- 13.55 Audio, Bluetooth and Wi-Fi: core utilities, fallback terminal UIs, status commands (decided with the owner 2026-11-15)
- 13.58 vpn : one list of VPNs with data-driven adapters (decided with the owner 2026-11-17)
- 13.59 The VPN bar plugin bxrig/vpn (decided with the owner 2026-11-17)
- 13.60 doctor (alias prerequisites ): one line per tool (decided with the owner 2026-11-18)
- 13.66 The screensaver (decided with the owner 2026-11-18)
- Distributions (decided with the owner 2026-11-20)
- Menu state and the Omarchy-parity commands (decided with the owner 2026-11-21)
- Accessibility (decided with the owner 2026-11-22)
- Fonts (decided with the owner 2026-11-22)
- Developer tools (decided with the owner 2026-11-22)
- BoxLang runtime (decided with the owner 2026-11-22)
- BoxLang servers (decided with the owner 2026-11-22)
- Scheduler (decided with the owner 2026-11-22)
- Task manager (decided with the owner 2026-11-22)
- Calendar (decided with the owner 2026-11-22)
- Launcher (decided with the owner 2026-11-22)
- 13.67 BoxLang agents: ai agents (decided with the owner 2026-11-24)
- 13.68 Boxy, the desktop assistant (decided with the owner 2026-11-25)
- 13.69 mcp : BxRig's tools for any coding agent or editor (decided with the owner 2026-11-25)
- 13.70 privacy : what leaves this machine (decided with the owner 2026-11-25)
- 13.71 android : Android apps with Waydroid (decided with the owner 2026-11-25)
- 13.72 boxy : Boxy's character and voice (decided with the owner 2026-11-25)
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 runpasses everything after its own flags through. An unknown command is exit 2 too. CLIGetArgs()puts flags inargs.optionsand the words inargs.positionals; a flag with a value is written--name=value(the form--name valueis a flag plus a positional on MatchBox).
2. Mutation rules (apply to every mutating verb)
- No
--yes: print the exact plan, change nothing, exit 2. --dry-runwith--yes: print the exact plan, change nothing, exit 0.- Preflight everything before the first mutation. A preflight failure means zero changes.
- Never escalate privilege silently.
sudois only called for pacman steps shown in the plan. - Never run AUR builds as root (exit 4).
- Every config file touched goes through the config service (backup, atomic replace, journal). No direct writes.
- Output lists succeeded and failed items separately. No rollback is promised across pacman and yay.
- External installer scripts (bvm, mvm,
toolchain node's nvm, catalogsource: 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 typedEXECUTEand--allow-external-scriptswere removed on 2026-11-10 (owner: running them is the point of the command). Decision 2026-11-09: no checksum pinning for these scripts. - Subprocesses are launched with argument arrays, never through a shell string. The one place that starts a process is
util/Proc; the fewsh -cwrappers pass every value as a positional argument (detach, recording, the pull-down shells). - The plan, dry-run and run protocol is one class,
util/Mutation, reached throughOut.plan( ... ): no--yesprints "Plan: TITLE", the extra lines and "Nothing was changed. Add --yes to apply." (exit 2);--dry-runprints "Dry run: TITLE" and the same lines (exit 0); the first failing step ends the run (exit 6). A ratchet intests/dry-test.shforbids hand-written plan footers. - 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
| Code | Meaning | Example |
|---|---|---|
| 0 | Success or no-op | already installed, or --dry-run |
| 1 | Check negative | package-status says missing |
| 2 | Usage error or missing confirmation | no --yes, unknown flag |
| 3 | Timeout, or item unavailable | pacman lookup timed out, package not in any repo |
| 4 | Precondition failed | root with AUR, not Arch, Java missing, not KDE where required |
| 5 | Official (pacman) phase failed | |
| 6 | AUR (yay) phase failed | |
| 7 | Partial success | some items done, some failed; --json lists both |
| 8 | Config conflict | drift detected, symlink or special file at target, concurrent run lock |
| 9 | Internal error | bug, unexpected exception (Application.bx onError prints it and exits 9) |
| 10 | An update is available | update 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):
| Field | Notes |
|---|---|
id, name, kind (desktop tui web), category, description | as legacy |
source (pacman aur pkgbuild script manual web), target | package name, or URL for web and script |
pkgbuild source: repo, path, ref | Build 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"] |
default | base tier flag |
source_status, source_confirmed | legacy 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 everypacman/aurtarget against real repos (Arch container, AUR RPC) and fails on unknown names.manualentries stay installable only by explicit user action. - Default list mismatch. 61 flagged default (29 pacman, 18 aur, 14 web).
app-profile.jsonbaselists 46. 20 defaults are not in that base list (for exampleark 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 aredbeaver(pacman),filezilla(pacman),krdc(pacman),rustdesk(aur) andpodman-tui(manual). Pending: keep them as curated (not default), or re-flag any as default. - Browsers.
braveisaur(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--jsonschema. - 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 markedmanualand 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):
| Check | Result |
|---|---|
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
- The 5 dropped base entries: keep as curated, or re-flag any as default?
- Catalog embed with merge-only user override: confirmed?
- 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 withfileWriteExclusive, temp files and journal records are created exclusive with their mode).- Global flag check and the
--jsonenvelope (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 bysrc/bxrig/CatalogData.bx). Filters use the--name=valueform (--tier=default --group=infra), because MatchBoxCLIGetArgstakes--name valueas a flag plus a positional.catalog checkis offline: errors exit 1, warnings (unpinnedpkgbuildrefs, 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
--aurflag: anything in the catalog installs from itssource(pacman,aur,pkgbuild,web). - Unknown id: usage error (exit 2), nothing runs.
- Skip reasons:
optional(not selected),wrong_shellandunresolved(catalog has no installable source yet; a namedunresolvedapp is reportedfailed, exit 3). - Already installed apps are
skippedwith reasoninstalled. - Section 2 still applies: no
--yesprints the plan and exits 2;--dry-run --yesprints it and exits 0. AUR andpkgbuildbuilds never run as root (exit 4). - Profiles live in the catalog (0.3.0): a top-level
profileslist and, per app, a map profile id todefault/optional.--profile=NAMEinstalls the profile'sdefaultmembers;--optionaladds itsoptionalones. Seecatalog/README.md. - Shells: an app may carry
shells(hyprland,plasma). The running shell comes fromXDG_CURRENT_DESKTOP, overridable with--shell=hyprland|plasma|all. Non-matching apps areskipped: wrong_shell; a named app still installs.
Per-source steps
| source | step |
|---|---|
pacman | one pacman -S --needed call for all pacman apps (sudo shown in the plan) |
aur | AUR helper (yay) as the normal user, apps one at a time |
pkgbuild | PKGBUILD shown, makepkg as the normal user, result installed with pacman |
web | a .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" } ]
}
planand--dry-runfillwould_installand leavedone/failedempty. A real run fillsdone/failedand leaveswould_installempty.- 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 IDexits 0 when installed, 1 when missing;datais{ "id", "source", "installed": true|false }.package-source IDprints{ "id", "source", "targets", "tier", "group" }.
Human output is the same lists, one app per line with its source.
Open questions
- Decided: a
webapp 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). Resolverclass (selection) andPackagesclass (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-listrun on the catalog. Installed state comes from onepacman -Qqcall (web apps: launcher file).install,optional-install,profile-installrun on the catalog throughInstaller(onepacman -Scall,yayper AUR app, pinned PKGBUILDs viagit clone+makepkg -si). Rules as in sections 2 and 11: no--yesprints the plan (exit 2),--dry-runexits 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
pkgbuildapps are pinned to one commit ofomacom/omarchy-pkgsand install withgit clone,git checkout COMMIT,makepkg -sias the normal user (root exits 4). All of them are optional, so a plainbxrig installskips 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
--yesprints the plan (exit 2);--dry-runexits 0. Results asinstall: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.--jsonis always one envelope on stdout (the config service has a quiet mode for that). A failed step says why (2026-11-17): itsfailedentry carriescommand(the argv that failed) andoutput(the last five lines of what it printed, at most 800 characters), and the text report prints them under theFailed:line (command: ...,| line);bxrig initdoes 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_DIRreplaces the path in tests): the step is listed inskippedwith 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|offacts at once (a reversible user setting meant to sit behind a shortcut).statusexits 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:
packages: the missing ones of 17 official packages in onesudo pacman -S --neededcall:hyprland, nativenoctalia,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-packagecachyos-hypr-noctalia(it conflicts withcachyos-desktop-settings, which the KDE session may rely on). Noctalia is the nativenoctaliapackage;noctalia-shell+noctalia-qsare a different Quickshell-based variant that conflicts withquickshell(a warning, not an error, if installed). The packages added are remembered ($XDG_STATE/bxrig/setup-hyprland.json, mode 600) sosetup undo hyprlandrunssudo pacman -Rson exactly those.images: the logo and wallpapers (13.6), missing ones only.starter: the Noctalia config and palette, and a firsthyprland.lua(13.5).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]:
| Part | Hyprland | Plasma |
|---|---|---|
| Tiling and workspace keys | Hyprland's own keys | HyprKwin (same defaults) |
| Cmd-style keys: Super+C, V, X, A in both styles; the rest and Super+Tab in the Mac style | xremap | xremap |
| Logout to the login screen, Super+Shift+Q | hl.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 renderprints a target's text (pure).keys applywrites~/.config/xremap/config.yml,~/.config/hypr/bxrig.luaand~/.config/systemd/user/xremap.servicethrough the config service (backup, journal;config list|diff|apply|restorecover them) and sets Plasma's Log Out with kwriteconfig6 when present.keys checkreports 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 conflictsis 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.confis deprecated, so bxrig targets Lua only [owner].bxrig.luaholds 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'shyprland.lua:keys checkreportsnot-loadedandkeys applyprints therequire("bxrig")line to add (the starter file already has it). setup xremapinstallsxremap-hypr-binorxremap-kde-binwithyay(build from--build, else the running desktop), adds the udev rule for/dev/uinputand the user to theinputgroup (both remembered insetup-xremap.json, mode 600), writes the shortcut files and enables the user service;setup undo xremapreverses 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.tomlandpalettes/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, editableclockwidgets with atimezone) 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.luafromtemplates/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, andrequire("bxrig"). It holds no key binding: every bind is a row of the table and lives inbxrig.lua.
13.5b Shell and terminal (decided 2026-11-10)
- Starship is the one prompt for every shell.
setup shellinstalls the shell's packages in onesudo pacmancall, writes~/.config/starship.tomlonce (the official Catppuccin Powerline preset, Mocha palette, Nerd Font symbols; no question is asked, change it later withstarship preset NAME -o ~/.config/starship.toml; yours afterwards), and makes the chosen shell the login shell withsudo 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), thenfishandbash. All getstarship,fzfandzoxide, 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 loadsconf.ditself). 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 starterhyprland.luaand the onesetup hyprlandinstalls (no longer Kitty); extras install withsetup 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(defaultzsh),terminal(defaultghostty),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.
| Provider | Launch | Menu (dmenu mode) | Icons | Choice comes back as | Package |
|---|---|---|---|---|---|
noctalia (default on Hyprland) | noctalia msg panel-toggle launcher | none | with Noctalia | ||
walker | walker | walker --dmenu | no | label | Walker |
rofi (default menu) | rofi -show drun | rofi -dmenu -i -show-icons -format i -p | yes | index | rofi |
fuzzel | fuzzel | fuzzel --dmenu --index --prompt | yes | index | fuzzel |
wofi | wofi --show drun | wofi --dmenu --insensitive --prompt | no | label | wofi |
vicinae | vicinae toggle | vicinae dmenu --prompt | no | label | vicinae-bin (AUR) |
krunner | krunner | none | with KDE | ||
system | none (the desktop owns it) | none | |||
custom | your custom_command | none |
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).
| Engine | Image | Host port | Password | Notes |
|---|---|---|---|---|
postgres | postgres:17 | 5432 | generated (postgres) | |
mysql | mysql:8.4 | 3306 | generated (root) | |
mariadb | mariadb:11.8 | 3306 | generated (root) | |
redis | redis:7.4 | 6379 | none (localhost only) | --appendonly yes |
mongodb | mongo:8.0 | 27017 | generated (root) | |
couchbase | couchbase:community-8.0.2 | 8091 | none: set in the web console | After 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. |
pgvector | pgvector/pgvector:pg17 | 5432 | generated (postgres) | run CREATE EXTENSION vector; |
chroma | chromadb/chroma:1.5.9 | 8000 | none | data in /data (1.x images) |
qdrant | qdrant/qdrant:v1.20.0 | 6333 | none | |
weaviate | semitechnologies/weaviate:1.39.15 | 8080 | none (anonymous access) | local only; never publish the port |
meilisearch | getmeili/meilisearch:v1.56 | 7700 | generated master key | runs with MEILI_ENV=production, which requires the key |
opensearch | opensearchproject/opensearch:3.9.0 | 9200 | generated (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 |
elasticsearch | docker.elastic.co/elasticsearch/elasticsearch:9.5.6 | 9200 | generated (elastic) | HTTPS, self-signed; single node; -Xms1g -Xmx1g; needs vm.max_map_count 262144 |
milvus | none | 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).
| Method | Files go to your home by | Applied with |
|---|---|---|
links | one symlink per file (folders are never replaced by a link) | ln -s |
stow | each top-level folder is a package | stow -d CLONE -t HOME -R PACKAGES |
chezmoi | dot_, private_, executable_, ... prefixes and .tmpl are mapped to the plain path for the conflict list | chezmoi apply --source CLONE --force |
yadm | ## alternate suffixes are mapped to the plain name | yadm 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|allfor 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 withbxrig 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) andxdg-mime default org.kde.okular.desktop application/pdf. They are plain argv steps (nobxrig defaultsubcommand, 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,NoctaliaConfigclasses with script tests; native tests with fakepacman,yay,git,qdbus6,kwriteconfig6,sudo,systemctl(plan output,--yesgating, root refusal, partial failure, re-run, undo, drift, one clean--jsonenvelope); 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 wholesetup 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.
| Command | Does |
|---|---|
secrets status | backend 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 list | names 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 --yes | deletes 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) whensecret-toolexists andorg.freedesktop.secretsis 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.jsonand shown bystatus. Keyring entries carry the attributesservice=bxrig name=NAME. - Values are passed to
secret-tooland to programs through standard input and the process environment, never through a command line, a temp file, a log, oranswers.json. setis 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) andsecrets.fish. They hold no values: one wrapper per agent command whose key is stored (claude() { bxrig secrets run ANTHROPIC_API_KEY -- command claude "$@"; }).secrets setruns it automatically. The shell init templates source these files.secrets global on NAME --yes | off NAME | show: exports a key to every new shell.onprints 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.envand.fish(mode 600, tmpfs, wiped at logout), never to a config file. The loader files callsecrets unlockonce per login when the cache is missing (the keyring's single unlock prompt);secrets lockremoves the cache. A globally exported key gets no wrapper. Moving machines and the keyring:secrets export FILE [--plain] [--force] --yes: all stored secrets asexport NAME='value'lines, encrypted with a passphrase byage -p(age asks on the terminal; the file is mode 600).--plainwrites 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). Installslibsecret(secret-tool, repo core) andage(repo extra) when missing; when no keyring exists, alsokwalleton Plasma orgnome-keyringelsewhere, or the one named.--keyring=noneinstalls no keyring and saves the file backend. The plan names what it installs. Package names andsecret-toolin 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) orother(a GitHub token and so on). A name in the provider registry isaiautomatically; any other name isotherunlesssecrets set NAME --type=ai [--provider=ID]says otherwise. The type and provider are kept insecrets.json(meta, names only, never values).secrets list [--type=ai|other]filters;secrets run --type=ai -- CMDloads every AI key and no other secret. - The provider registry (
AiProviders) maps providers to environment variables: anthropicANTHROPIC_API_KEY, openaiOPENAI_API_KEY, googleGEMINI_API_KEY, openrouterOPENROUTER_API_KEY, novitaNOVITA_API_KEY, opencodeOPENCODE_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(fakesecret-toolandbusctl). 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.
| Command | Does |
|---|---|
ai list | each 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) runningbxrig secrets run KEYS -- AGENT, then sizes it to 100% x 45% and moves it to the top withhyprctl dispatch resizewindowpixel/movewindowpixel(best effort). The Hyprland module (keys apply) holdshl.window_rule({ name = "bxrig-ai", match = { class = "^com.bxrig.ai$" }, workspace = "special:ai", float = true })and the shortcutSuper+\`` 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.addSessionon/yakuake/sessions), types the agent command (runCommand) and shows the window (toggleWindowStateon/yakuake/window); later calls only toggle. The tab is remembered in$XDG_RUNTIME_DIR/bxrig-ai-shell.initinstallsyakuake(officialextra) when Plasma and an agent are chosen. The Plasma shortcut is not written by BxRig: bindbxrig ai shellin 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(fakehyprctl,dbus-send,yakuakeand 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 inmem_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).--alladds 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 withshafter--yes), elsellamaorllama-serveron the PATH.--source=aurinstallsllama.cpp-vulkan-bin(Arch only).updaterunsllama 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 -toFILE.part), progress every 2 s, SHA-256 against the catalog, thenFILE.partbecomesFILE. A mismatch keeps the.partand fails (exit 6). Disk check before (download + 1 GB). After:ai.jsonand 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 withPOST /models/unload),test [ID](chat: one question,max_tokens48, thinking off, recordsreply_sandtpsfromtimings.predicted_per_second; embeddings: one vector, recordsdimensions),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 asthreads,ubatch-size,flash-attnin 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) runsllama 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-keywhen 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 withmodel = PATH; chat modelsctx-size = 8192and the tuned keys; embedding modelsembeddings = 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 optionalai setup --yes [--picks=all] [--tune]step.ai_localstill 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, andtui aiin 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 (pipelinetext-generation,image-text-to-text,feature-extraction,sentence-similarity,text2text-generationor none), gated repositories left out; per repositoryGET /api/models/REPO/tree/main?recursive=truefor the.gguffiles (nommproj, no-0000N-of-0000Mparts) withsizeandlfs.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.--toolsasksGET /api/models/REPOand keeps repositories whose chat template mentions tools.BXRIG_HF_URLreplaceshttps://huggingface.cofor 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 inai.jsonasmodels.ID.meta(source: "hf",verified: false).- Queue: every pull writes
~/.local/state/bxrig/ai-downloads/ID.json(queued,downloading,checking,done,failed,cancelled);--backgroundruns the same pull detached (setsid, output inpull.logthere).ai downloadsreads the records with the live share from the.partsize;cancel IDmarks it, stops its curl (pkill -fon the.partpath) and deletes the part;clearforgets 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_tokens400. 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 asmodels.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.jsongetsproviders.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/crushrcgets a marked blockprovider add bxrig --name "BxRig local AI" --type llamacpp --base-url BASE.--offremoves only those (and abxrig/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; Enterai models pull SPEC --background,ccancel,xclear,hHugging Face) andai-agents(ai list,ai link,ai session list; Enter session,ddefault,llocal server). The AI page:bbench. 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]andai text menu(AiText.bx): the text from--text, elsewl-paste --primary --no-newline --type text, elsewl-paste --no-newline --type text(--fromlimits 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 withwl-copyand notifies;notifyonly notifies;stdoutonly prints.menupicks the action with the runner's menu (Runner.select). Shortcutai-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'sllama): 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_ed25519withssh-keygen -t ed25519 [-C ADDRESS](~/.sshis 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'sssh_keyanswer 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 withkwriteconfig6 --file kxkbrc --group Layout(Use=true,LayoutList=us,es,VariantList=intl,,Options=grp:alt_shift_togglewhen 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'skxkbrc; not run on a real Plasma here. Hyprland takes the same answer throughsetup hyprland --layouts.initruns it when Plasma is chosen, solayoutsis 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 --yesand 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 0with empty input prints what you type); for Walker, Fuzzel, Wofi and Vicinae, where typed text is not verified, Create opens a terminal that runsweb addwith no arguments, which asks for the name, URL and browser itself (the typing is the consent).web addwith 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/--yesrules. Back and Exit are the last entry of each level; cancelling the provider (empty answer) leaves the menu with exit 0. - Terminals for
runentries: the first installed of ghostty, kitty, foot, alacritty, konsole (-efor ghostty, alacritty, konsole). Exit 4 when there is no menu program, or no terminal for arunentry. - Hyprland binds it to
Super+Spacein the shortcut table;Super+Alt+Spaceruns the launcher you chose (runner launch).menu open ROUTEopens one section (system,capture,toggle,hardware,agent,shortcuts, or a path such astrigger > capture; no ROUTE lists them);Super+Escape,XF86PowerOff,Super+Ctrl+C,Super+Ctrl+O,Super+Ctrl+HandSuper+Shift+Ctrl+Ause 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 withBXRIG_ETCfor tests), a compose tool (podman-composeordocker-compose), the user socket (systemctl --user is-active podman.socket), and adockercommand that runs Podman. Exit 0 when all pass, 4 when something needs fixing (or Podman is missing).containers socket enable [--yes]runssystemctl --user enable --now podman.socketand printsDOCKER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock.containers docker-compat [--yes]installspodman-docker(ships/usr/bin/docker) andpodman-composewithsudo pacman -S --needed. Refused with exit 4 while thedockerpackage is installed (it conflicts). Real wrapper scripts are not written: the packages are the compatibility layer. The wizard asksdocker_compat(default yes) when Podman is the engine;initruns it after the containers profile.containers list [--json]lists every container on the configured engine (bxrig db engine, Podman by default) withps -a --format:data.containers[]is{name, image, state ("running", "exited", "created", "paused"), ports (host ports, numbers), ports_text, created, kind};kindisdatabaseforbxrig-db-*,vmforbxrig-vm-*, elsecontainer.containers start|stop|restart NAMEact on one container by its engine name (reversible, so no--yes, likedb stopandvm stop; starting a running or stopping a stopped container is a no-op withdata.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: installsneovim git ripgrep fd lazygit tree-sitter-cliwhen missing (tree-sitter-clibuilds the grammars for nvim-treesitter'smainbranch, which LazyVim uses),git clone https://github.com/LazyVim/starter ~/.config/nvim, removes its.git. An existing~/.config/nvimis never touched (exit 4 with themvto run). Wizard:editor_starter(nonedefault,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 picklists the history with your menu provider, decodes the chosen entry (cliphist decode, entry line on standard input) and copies it withwl-copy. Text entries only (binary entries are left out of the menu).clipboard clear [--yes]runscliphist wipe(plan without--yes);clipboard statusshows the tools and the entry count. Exit 4 whencliphist,wl-clipboardor the menu program is missing.- The Hyprland module (
keys apply) starts the history at login:wl-paste --type text --watch cliphist storeand the same for images, and bindsSuper+Ctrl+Vtoclipboard pick. record [toggle|start|stop|status] [--region] [--dry-run](default toggle) runswf-recorder -f ~/Videos/bxrig-YYYYMMDD-HHMMSS.mp4detached (BXRIG_VIDEOSchanges the folder);--regionadds-g "$(slurp)". Stop sends SIGINT (pkill -INT -x wf-recorder) so the file is finished. Hyprland bindsSuper+Shift+R(toggle),Super+Alt+Shift+R(a region) andAlt+Print(toggle with desktop audio,--audio=desktop;--audio=micis in the menu). Exit 4 whenwf-recorderor, for a region,slurpis missing.wf-recorderhas 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. Thewl-paste --watchautostart 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 examplekeys 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/*.luaalready binds it (--forceallows that one). Plan without--yes(exit 2). The override is saved in~/.config/bxrig/shortcuts.jsonthrough the config service; it takes effect withkeys apply --yes.keys reset ID [--yes]removes the override.keys conflicts [--json]reports combos used twice inside the table and clashes with your ownhl.bind(lines (best effort: it readsmainModand the quoted names on the line, it is not a Lua parser;bxrig.luais skipped).keys showmarks 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_HOMEis honored). Chromium-family browsers getExec=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 listshows the apps BxRig made (the URL is stored asX-BxRig-Web=);web rm NAME [--yes]deletes one. Plan without--yes(exit 2). Browser commands:chromium;brave,google-chrome-stable,microsoft-edge-stable,firefoxare the vendors' usual names, not verified here. No icon is fetched (Icon=web-browser).vpn nordvpn setup [--yes]runs the two steps thenordvpn-binAUR package prints in its install notes (checked 2026-11-12):sudo systemctl enable --now nordvpndandsudo gpasswd -a $USER nordvpn(log out and in afterwards), thennordvpn loginby hand. NordLayer is not covered. The wizard's VPN question offers NordVPN (catalognordvpn);initinstalls it and runs the setup as an optional step.- Remote desktop: the wizard's
remote_desktopmulti-choice (Remmina, RustDesk, Moonlight, Sunshine; nothing preselected) installs catalog apps in the singleinstallstep. 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 fromhyprctl activeworkspace -jandhyprctl clients -j; each one that is not already there getshyprctl dispatch setfloating address:ADDRorsettiled address:ADDR.togglefloats everything when at least one window is tiled, otherwise tiles everything. Plasma: HyprKwin is a session-wide switch, so toggle flipstiling 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 servicexremapthatsetup xremapwrote (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 macstays as the xremap service switch.- Not done: a theme manager (
colors.tomlthemes to Noctalia palettes). It needs Noctalia's runtime theme interface, which has not been verified;setup hyprland --theme=dark|light|autostill picks the theme of the starter. cloud remotes | configure | mount NAME [--path=DIR] [--yes] | unmount NAME [--yes] | status: rclone remotes as folders.configurehands your terminal torclone config(BxRig never sees the logins).mountwrites~/.config/systemd/user/bxrig-cloud-NAME.servicethrough the config service (Type=notify,rclone mount NAME: DIR --vfs-cache-mode writes,ExecStop=fusermount3 -u DIR,WantedBy=default.target), reloads systemd and runsenable --now; DIR is~/Cloud/NAME, absolute, without spaces or quotes. An edited unit is never overwritten (exit 4).unmountdisables 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'scloud_storage(default no) installsrcloneandfuse3. 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)
appsshows 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+Spaceisrunner launch, andappsis reached from the menu. The list is the*.desktopentries of/usr/share/applications,~/.local/share/applicationsand the Flatpak exports (BXRIG_APPS_DIRSoverrides, colon separated). A later folder wins for the same file name, soHidden=truein your own folder removes an app. OnlyType=Applicationentries withoutNoDisplayorHiddenare listed, sorted by name; icons are passed to providers that take them. An entry starts with itsExecline, field codes (%Uand 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+Spacelaunches apps with your launcher (runner launch) andSuper+Spaceopens the control center (owner, 2026-11-15); change either withkeys set. TheAppsentry of the menu runsapps. 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 machineinit --from=FILEfills the wizard with them, andinit --answers=FILE --yesruns them without asking. - Catalog:
btrfs-assistantandtimeshift(bothextra, verified 2026-11-12) are in the default tier, so a plaininstalland Basic mode install them. Btrfs Assistant is in the default set only when/is Btrfs: the catalog entry hasfilesystems: ["btrfs"], the resolver skips it elsewhere aswrong_filesystem(an unreadable filesystem counts as not Btrfs;BXRIG_ROOT_FSoverrides the detection, which isfindmnt -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]runshyprkwinctl 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, nohyprkwinctl, or no running KWin; 6 whenhyprkwinctlfails.initruns 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 layoutand the menu.columnsis Hyprland's master layout withorientation = "center"andmfact = 0.34(three even columns once two windows sit beside the master);floatingis 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+Mmaximize (hl.dsp.window.fullscreen({ mode = "maximized", action = "toggle" }));Super+Hminimize andSuper+Shift+Hrestore are now Lua dispatches in the binding (window minimize|restoretries the legacyhyprctl dispatchwords, then the Lua form);Super+Shift+Jcycles dwindle, master, columns, scrolling, monocle on the current workspace withhl.workspace_rule(the wiki's "Cycle layout for current workspace" snippet) and shows a notification;Super+Minus/Super+Equalsend 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/Rightfocus workspacer-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+arrowsmove the window to the monitor in that direction (hl.dsp.window.move({ monitor = "l" })),Super+Alt+Shift+arrowsmove the workspace (hl.dsp.workspace.move({ monitor = ... })),Ctrl+Alt+Tab/ with Shift focus the next / previous monitor (focus({ monitor = "+1" })),Super+Ctrl+Tabgoes back to the last workspace (previous_per_monitor);Super+Alt+Up/Downsnap to the top / bottom half andSuper+Alt+Shift+Ccenters 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 offwritessnap = { enabled = false }intolook.lua.window snap left|right|top|bottom(Super+Alt+arrows) reads the focused monitor fromhyprctl monitors -j(logical size = pixels / scale, minusreservedfor the bar, 12 px gaps), then runshyprctl dispatchwithhl.dsp.window.float({ action = "set" }),resize({ x, y, relative = false })andmove({ 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=._/:-]+,shellisshorbash. Strata uses it with--non-interactive, pinned to a commit oflgse/strata. - File manager: the wizard asks
file_manager(stratadefault,dolphin) on both desktops.fleais removed.default filemanager strata|dolphin [--yes] [--dry-run]runsxdg-mime default <app>.desktop inode/directory;default showreports 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 aprovider.jsonnaming python3), downloaded from the pinned Strata commit. An existing provider folder is kept. Exit 4 without curl or python3, 6 on a failed download. Thekdeconnectcatalog app installskdeconnect,sshfs,qt6-tools(its optional dependencies) andpython-gobject(the provider needs it);localsendis already a default app. - Rust:
rustis a Toolchains option, on by default with Java.rustupitself comes withinstall.sh; the plan step isrustup 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 installswtypetoo. 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 asksdictation(superwhisperdefault,voxtype,none). - Quick Look:
quicklook [PATH] [--dry-run]runskiview -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.kiviewis 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.--fixrunskbuildsycoca6 --noincremental. Exit 0, 4 when something needs fixing, 6 when--fixfailed. 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 (HyprlandSuper+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(--editadds--annotate); Hyprland without Noctalia: grim and slurp into the clipboard; Plasma: Spectacle (-f,-r,-a). The desktop is read fromXDG_CURRENT_DESKTOP(BXRIG_DESKTOPoverrides).screenshot ocrdrags a region and copies its text (tesseract);screenshot qrreads a QR code from a region (zbarimg) and copies it;screenshot menuis 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):
Printis the region screenshot in both styles; the Mac style also hasSuper+Shift+3screen,Super+Shift+4region,Super+Shift+5menu (rows of the table, not of the starter file).Super+Printis the color picker (screenshot color, hyprpicker). On Plasma Spectacle's own shortcuts apply; BxRig does not rebind them (thekglobalshortcutsrckeys 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 offstops 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. ShortcutSuper+Alt+Ntoggles 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]writeskwinrc [Desktops] Number=N, Rows=1and 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--agendaEvent Calendarorg.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 signalluisbocanegra.panel.colorizer.all.preset. Bottom panel: a dock with the icons-only Task Manager (org.kde.plasma.icontasks). Plugin ids come from each widget'smetadata.json.- Backup and undo: the first
applycopiesplasma-org.kde.plasma.desktop-appletsrcto~/.config/bxrig/plasma-panels/backup/and keeps that first copy;undo --yesputs 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(bxrigdefault, orkeep),plasma_weather(default on),plasma_agenda(default off). The plan installs the widget apps (Plasma-only catalog entriespanel-colorizer,panel-colorizer-islands,window-title,kvitals,kdeplasma-addons,event-calendar) and runs the optional stepplasma panels apply --desktops=<workspaces>(orplasma desktops Nwhen you keep your panels).kvitalsis 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 itsmain.xmldeclares, 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 abundle(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 asksweb_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 whatinstall.shinstalls (Java 21,bvm,mvm, BoxLang, MatchBox).userunsbvm installwhen the version is missing thenbvm use(latest,snapshotor a number);matchbox usedoes the same withmvm. The MatchBox runtime home is~/.matchbox(MATCHBOX_HOME, registered inEnv), created by MatchBox on its first run, withconfig/boxlang.json(the BoxLang config format),logs/and the user env file~/.matchbox.env; a./boxlang.jsonand a./.envin the directory a program runs in are read too.matchbox statusreports them (read-only, exit 0).matchbox log-level ERROR|WARN|INFO|DEBUG|TRACE|OFFchanges the onelogging.rootLevelvalue in the home config as exact text (comments stay; with no config file it writes a small one; a file without exactly onerootLevelis left alone, exit 4).matchbox env listnames the keys of~/.matchbox.envand never shows a value;env set KEY VALUEandenv unset KEYchange 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 withwriteLog( text = "COMMAND exit N", log = "bxrig" ), so MatchBox'sbxriglogger (~/.matchbox/logs/bxrig.log, lines[bxrig] COMMAND exit N) records it: exit 0 asinformation, 2 and 10 asdebug, 1, 3 and 4 aswarning, anything else aserror. MatchBox's default level is WARN, so a normal run writes nothing untillogging.loggers.bxrig.levelis lowered; a MatchBox without a runtime home ignores the call, and a logging problem never changes the exit code.log-levelandenv set|unsetare mutations: a plan (exit 2) until--yes,--dry-runprints it (exit 0), and a plan never prints a value.modules list|search TEXTreads ForgeBox's public API as implemented in saas-forgeboxmodules_app/api-v1(https://forgebox.io/api/v1/entries/boxlang-modules?orderBy=popular&max=50&offset=N[&searchTerm=];maxis capped at 50 per call, so the pages are followed until one is short, at most 20);modules install SLUG...|installed|outdated|updatewrapbx-module.vscoderunscode --install-extension ortus-solutions.vscode-boxlangandortus-solutions.vscode-boxlang-developer-pack(names from Ortus's docs; VS Code is a default app).linkslists the BoxLang sites;welcomewrites~/.config/bxrig/welcome.html(Try BoxLang, MatchBox, the ecosystem links) and opens it. The wizard (Toolchains page) asksboxlang_modulesandboxlang_vscode; the menu has a BoxLang submenu. Exit 0, 4 tool missing or bad name, 6 failed.boxlang new APPis 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 Commato 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 terminalsSuper+T N W FbecomeCtrl+Shift+T N W FandZ X A S ...pass through unchanged so shell shortcuts keep working.Super+Qcloses the window,Super+Hminimizes andSuper+Shift+Hshows minimized windows (window minimize|restore:hyprctl dispatch movetoworkspacesilent special:minimizedandtogglespecialworkspace minimized).Super+Ctrl+Eemoji picker,Super+Alt+Escapeforce quit,Super+Ctrl+Upoverview,Alt+Spacedictation 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: Hyprlandhyprctl kill(click the window); Plasmaqdbus6 org.kde.KWin /KWin org.kde.KWin.killWindow.overview [setup]: Hyprlandhyprctl dispatch hyprexpo:expo toggle(setuprunshyprpm update,hyprpm add https://github.com/hyprwm/hyprland-plugins,hyprpm enable hyprexpo); Plasmaorg.kde.kglobalaccel /component/kwin invokeShortcut Overview. Hot corners are not built: KWin's[Effect-overview] BorderActivatevalues could not be verified (set them in System Settings > Screen Edges).nightshift [on|off|toggle|status] [--location=LAT,LON]: Hyprland: a user servicebxrig-wlsunset.servicerunningwlsunset -l LAT -L LON -t 3500 -T 6500; the coordinates come offline from your time zone in/usr/share/zoneinfo/zone.taborzone1970.tab(BXRIG_ZONEINFOoverrides the folder); an edited unit is kept. Plasma:kwinrc [NightColor] Active=true, Mode=Automatic(the Mode value is unverified). The wizard (Input page) asksnight_shift, default on.gpu doctor:lspcivendors (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 thatbxrig ai setupinstalls the CUDA or ROCm build of llama.cpp. Exit 4 when something is missing. CachyOS normally installs the driver itself.input doctorandinput gestures [--yes]: Magic Mouse and Trackpad checks (kernelhid_magicmouse, thebluetoothservice, theinputgroup) and~/.config/libinput-gestures.confwith three-finger swipes (left and right:hyprctl dispatch workspace e+1ande-1; up: overview; down: previous workspace), thenlibinput-gestures-setup autostartandstart. The wizard asksgestures(Hyprland, default on) and installslibinput-gesturesandbluez.input status|offer|apple|logitech|undoare in 13.65.airplay on|off|status: UxPlay asbxrig-airplay.service(uxplay -n BxRig); it needsavahi-daemon. Wizard questionairplay, 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]andsettings import FILE.tar.gz [--yes]: the BxRig settings (not secrets, backups or state); import backs up each existing file asNAME.bak-STAMPand refuses archives with paths outsidebxrig/. 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.shis published asinstall.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'sbxrig-linux-x86_64andbootstrap.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 ofbootstrap/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].--yesnever asks (it needs passwordless sudo or a primedsudo -v), the wizard then runsbxrig init --answers FILE --yesor, without a file,bxrig init --defaults --yes(the wizard's default answers).--dry-runshows the banner and checks and does nothing.--base-urlorBXRIG_BASE_URLpoints 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) orgithub:OWNER/REPO@REF(REF a branch, tag or commit;github:@REFandgithub:REFmeanortus-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--channelthat disagrees exit 1). The github source skips the signed release: it is UNSIGNED (warning;--yesor the typed wordunsignedat a terminal, else exit 2 before any download), downloadscodeload.github.com/OWNER/REPO/tar.gz/REF(GITHUB_TOKENorGH_TOKENas a header through a curl config on stdin, never printed or logged; refuses paths outside the top folder), runs the tree's ownbootstrap/install.shstages (binary --yes --forcebuilds from the tree'ssrc/Main.bx), then the wizard from that binary.--dry-runwith a github source downloads and unpacks it, prints the resolved commit and the tree'sinstall.sh --dry-runplan, installs nothing. The source and the commit (the pax headergit archivewrites into the tarball) go to~/.cache/bxrig/install.logand~/.local/share/bxrig/install-source;bxrig updatedoes not read that file (the binary differs from the channel's, soupdate checksays an update exists andupdate apply --yeswould 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;--snapshotis 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--snapshotwith 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/(av*tag),beta/(every push todevelopment, the bleeding edge), each withbxrig-linux-x86_64,.sha256,bootstrap.tar.gz,.sha256andversion-latest.properties(version,commit,sha256,channel,builtAt);snapshots/<version>-<sha>/keeps every beta build andreleases/<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'sversion-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.sha256and 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 asksupdate_channel, default stable).update notifications on|off|statusmanages a daily user timerbxrig-update-check.timerthat runsupdate check --notifyand shows a notification (noctalia msg notification-show, elsenotify-send); the wizard asksupdate_notifications, default on.system update [--yes]takes a snapshot first when snapper or timeshift is present, thensudo pacman -Syu --noconfirmand, 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.propertiesandinstall.shwith Ed25519 (openssl pkeyutl -sign -rawin) using the secretBXRIG_SIGNING_KEY; the properties carrysha256(binary) andbootstrap_sha256(bundle). The public key iskeys/release.pub(made withscripts/gen-signing-key.sh), embedded into the binary (bootstrap/gen-releasekey.shwritessrc/bxrig/ReleaseKey.bx) and into the publishedinstall.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 forupdate); without a key (a development build) only SHA-256 is checked. Limit: the very firstcurl | bashstill trusts the script it downloads (TLS and the bucket), so the signature protects the files the script fetches and every later update; verifyinstall.sh.sigby hand withkeys/release.pubfor 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 fromcheckupdates(exit 0 rows, 2 none, 1 error), AUR rows fromyay -Quaorparu -Qua(no helper: none, not an error);repoof a package isrepooraur. Restart rule:reboot_pendingwhen 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_stalewhen/usr/lib/modules/$(uname -r)is gone;needs_rebootis either. Exit 0 always except 4 (no pacman, nocheckupdates, orcheckupdatesfailed). ClassSystemUpdates; the parsers arePacman.parseUpgrades,Pacman.pendingUpdatesandAur.pendingUpdates(Aur.updateHelperis 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), thensudo pacman -Syu --noconfirm(--repo), the AUR helper-Sua --noconfirm(--aur, yay else paru; exit 4 without one) or both (--all, the default). Without--yesthe plan is printed (exit 2),--dry-runshows it and exits 0; two scopes together are a usage error (2). Text mode prints[n/N] commandas each step starts; the data of a run carriesneeds_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.jsonrecords what BxRig installed (embeddedorhub, the reference, the SHA-256). Names:bxrig(five skills embedded in the binary fromskills/*/SKILL.mdbybootstrap/gen-skills.sh:bxrig,bxrig-install-update,bxrig-desktop,bxrig-apps,bxrig-ai),boxlang(ortus-boxlang/skills/boxlang-developer~language-fundamentals) andmatchbox(.../boxlang-developer~runtime-matchbox). A reference isOWNER/REPO/SLUG(SLUG isCATEGORY~NAME) orOWNER/REPO/CATEGORY/NAME. The hub ishttps://skills.boxlang.io(BXRIG_SKILLS_URL), whose API (sites-skills.boxlang.io,app/handlers/api/Skills.bx) isGET /api/skills?search=&tag=&perPage=&sort=,GET /api/skills/:owner/:repo/:slug, andPOST /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) asksagent_skills(defaultbxrig,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 athttps://bxrig.boxlang.ioby.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.xfreezes it andversions.defaultthen serves it at the root withdocs/at/next/. i18n is configured for English only (i18n.defaultLocale).docs/reference/commands.mdis generated from the usage text insrc/Main.bxbybootstrap/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-runwhere they change anything and--json. Likerunner setthese 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.tomltheme format, so themes move both ways:colors.toml, optionalneovim.lua, optionalbackgrounds/(the first file is the wallpaper). Bothcolors.tomlshapes are read: the named one (accent background foreground selection muted red green yellow blue magenta cyan bright_*,mode = "dark"|"light") and the oldercolor0..color15one. The named shape maps to the 16 ANSI slots: black isbackground, white isforeground, bright black ismuted, bright white isbright_foreground. A missing required key or a value that is not#rrggbbrejects the whole theme. Light or dark is the file'smode, 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/NAMEand~/.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 inthemes/NOTICE.md) and 5 of ours (bxrig,bxrig-light,bxrig-midnight,bxrig-cyan,bxrig-forest).installtakes an https git URL only (a repository namedomarchy-NAME-themebecomesNAME), 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
setwrites (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.luaand every theme'sneovim.luain~/.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 itsbackgrounds/, other bundled themes keep yours),plasma-apply-colorscheme BreezeDark|BreezeLighton KDE,hyprctl reloadinside Hyprland. A missing or silent Noctalia is a note, not an error. Modetheme(default) follows the theme;dark,lightorautopin it; the mode survivesset. - Where the files are used: the terminal starters (written once) include
~/.config/bxrig/theme/...(ghosttyconfig-file = ?path, kittyinclude, alacritty[general] import, footinclude=) andTerminalConfig.applywrites the default theme files, so an include never points at nothing; your own terminal configs are never edited. The managedhypr/bxrig.luareadstheme/hypr.lua(border colours). btop needscolor_theme = "bxrig"in yourbtop.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-applythemes them is unverified). - Neovim layer (
editor lazyvim|boxlang|status|refresh): after the starter is cloned (an existing~/.config/nvimis never touched) the layer is added:lua/config/bxrig.lua(relativenumber off, autoformat off, OSC 52 clipboard over SSH, loaded by one line added tooptions.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 fromnvim-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'sneovim.lua) and the neo-tree extra merged intolazyvim.json. Written by us.editor boxlangadds only the plugin file to a LazyVim config you have.refreshrewrites the files still as BxRig wrote them and keeps the ones you changed unless--force. - Theme depth (2026-11-13):
setalso writestheme/tmux.conf,theme/fzf.sh(FZF_DEFAULT_OPTS),theme/rofi/theme.rasi(plus arofi/config.rasistub only when none exists), GTK 4 and 3gtk.css(libadwaita@define-colornames, adw-gtk3 for GTK 3), qt6ct and qt5ctcolors/bxrig.conf(21 ARGB roles),fuzzel/fuzzel.iniandwofi/style.css: 18 files in all, each kept when you edit it. It sets gsettingscolor-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 intoworkbench.colorCustomizationsof 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(defaultbxrig; a Light answer with the default picksbxrig-light) is chosen on its own Theme page (not on the Look page) and runstheme setafter the terminals, optional, for Hyprland and Plasma; when a theme is applied already, choosingbxrigagain still runstheme set bxrig(InitPlan.planis 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 .cfsfiles orbox.json,Application.bx,Application.cfc. It has nowhen(Starship shows a custom module when ANY ofwhen,detect_files,detect_extensionsmatches, sowhenwould show it everywhere); its command prints the~/.bvm/currentsymlink name (honouringBVM_HOME) or nothing. The starter is written once, so existing installs see the change withbxrig 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 stubvim(no Neovim here); the Starship command logic run insh, not by Starship. Unverified on a real machine: the Noctalia IPC argument forms against a running Noctalia, Hyprland'sdofileandhl.configfrom the managed module andhyprctl reloadwith a Lua config, ghostty's?optional include, kitty, alacritty[general] importand footinclude=with a missing file, the foot[colors-dark]section on the installed foot, lazy.nvim picking the colourscheme plugin up on:colorscheme,vim-boxlangloading withlazy = 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.createandremoveare plans until--yes(--dry-runtoo). 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 isdockurr/windows; a Linux desktop is LinuxServer'slscr.io/linuxserver/webtop:TAG. The container isbxrig-vm-NAME, labelledio.bxrig.vm. The first Windows is namedwindows. The engine is the onebxrig db enginechose (Podman by default). - Where things live (documented for the user in
docs/guides/vms.md): data in~/.local/share/bxrig/vms/NAME(storageis the Windows disk,configis the Linux desktop's home folder), the record above, the password in the keyring asBXRIG_VM_<NAME>_PASSWORD(bxrig secrets), an app-menu launcher~/.local/share/applications/bxrig-vm-NAME.desktop(runsvm open NAME), and a shared folder:~/Windows(drive Z:) or~/Shared(/config/Shared), or--share=none.removedeletes the container, the data, the password, the record and the launcher; the shared folder is never deleted;--keep-datakeeps data, password and record.sizeisduof the data folder; the images are in the engine (podman image ls). - Security: ports bind to
127.0.0.1only (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 afterrun. The defaultadminpassword 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:
--versiontakes 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--jsonthe 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, envVERSION 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).openstarts 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,opensays so and points atopen --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
latesttag asalpine-xfce); defaultubuntu-xfce. Thedevtag and the deprecated Enterprise Linux tags are not offered; KDE tags are Wayland only. Run:--shm-size 1gb, envPUID 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.--cpusand--memorymap to the engine flags. When the host has no IPv6 (/proc/sys/net/ipv6missing) the container also getsDISABLE_IPV6=true, because the image's nginx otherwise fails onlisten [::](found by running the real image;doctornotes it). - GPU (Linux desktops, opt-in):
intelandamdadd--device /dev/dri(needs it to exist);autodoes that when/dev/driexists and nothing otherwise;nvidiafollows 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.doctorreports/dev/dri, the NVIDIA driver version (the docs ask for 580 or newer) andnvidia-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) andvm_linux(none or six tags); they become optional stepsvm create windows --version=Vandvm 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.shandtests/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 linuxwith the reallscr.io/linuxserver/webtop:ubuntu-xfceimage throughbxrig: the published127.0.0.1:3001answers 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) andremovebehave. Never run: Windows (no/dev/kvmhere), 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 published127.0.0.1port (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.runfile per the docs, whether CachyOS's packaged driver counts, CDI on Podman, the Arch package namenvidia-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 menuhas 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 isMenuTree(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 (kindterm) opensbxrig init(the defaulttunemode: 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 inthemeIcon(menu items --json); the runner sends it to providers that draw icons (Rofi, Fuzzel) with the row, withsystem-search,go-previousandapplication-exitfor 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 installin a terminal),catalog(one catalog group, choose, confirm,install ID --yesin a terminal),db,webcreate,webrm. Aconfirmasks 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 v5search/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 throughyay -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 atyay -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 thecachyos-settings,cachyos-hooksand 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 throughpkg 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~/.configand~/.localare never touched.system lock|suspend|logout|reboot|shutdown: throughnoctalia msg session ...inside Hyprland with Noctalia (Noctalia IPC docs), elseloginctl 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) andtests/menu-test.sh(fake Rofi, Wofi and terminal);pkg search|info|install|removeandremovewere also run against the real Arch repos and the live AUR in the Arch test container (search, install and remove ofcowsay,jqremoved by catalog id, protected packages refused). Not verified: the menu on a real provider (Rofi, Walker, Fuzzel), AUR installs throughyay,systemactions on a real session.
13.35 Appearance (decided with the owner 2026-11-13)
bxrig appearance status|applyand verbsbar 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-runand--json.- State is
~/.config/bxrig/appearance.json; every choice is remembered, soapplyre-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 barmain,[dock],[shell],[widget.clock]and[widget.battery]; show/hide/toggle and wallpapers usebar-*,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 managedbxrig.lua; it is applied withhyprctl reload.floatingrunslayout 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|statusandtime format [FORMAT|default]are settings (act at once,--dry-run,--json, exit 2 for bad words). Unlike the verbs above they do not useconfig-setfor the bar:BarSettingsrenders~/.config/noctalia/config.toml(NoctaliaConfig.configToml) through the config service (backup, journal) and runsnoctalia 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|offandbattery-percentalsoconfig-setthe same key so Noctalia's own layer (which wins over the file) agrees with the file. The saved keys arebar.layout,bar.battery_percent,bar.time_format,dock.mode(off means the dock is off) and the top-levelappgrid.dock togglenow flips the saved dock on or off; the runtime verbs aredock show|hide. Theterminalapp 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 areassets/icons/plates/*(SVG and PNG), written to~/.local/share/bxrig/plates/byassets installand by the bar commands. - Verified:
tests/appearance-test.shwith fake noctalia, hyprctl, fc-list, pacman and sudo. Not verified on a real machine: Hyprland Luadofileand reload, Noctaliaconfig-setpersistence 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-runand--json.- Hyprland: one generated file,
~/.config/bxrig/theme/monitors.lua(a list ofhl.monitortables), written through the config service and loaded by the managedbxrig.luaafter your ownhyprland.lua; thenhyprctl reload. Names come fromhyprctl monitors all -j. Plasma:kscreen-doctor output.NAME.scale.X|rotation.left|position.X,Y|mode.WxH@R|enable|disable(90 maps toleft, 180 toinverted, 270 toright; 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|downwhen Noctalia is there, elsebrightnessctl set 5%+|5%-;set Nusesbrightnessctl. - Not built:
laptop auto(clamshell on lid events). Lid behavior belongs tobxrig 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 theeditorsprofile.
13.37 Power (decided with the owner 2026-11-13)
bxrig power status|profile|lid|hibernate|charge-limit|setup|doctor.profile [performance|balanced|saver]usespowerprofilesctl get|set(saverispower-saver).status --json(2026-11-17, the Power panel reads it):data.battery[]has one entry perBAT*withname,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_limitandcharge_limit_supported. A number the battery does not report is-1. The rest ofdata: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_noworcharge_now/current_now,*_full,*_full_design,cycle_count).lid [battery|ac] suspend|hibernate|lock|ignorewrites the logind drop-in/etc/systemd/logind.conf.d/50-bxrig-lid.confwithsudo install -Dm644:HandleLidSwitchis the action on battery,HandleLidSwitchExternalPowerthe action on AC power,HandleLidSwitchDocked=ignore. Withoutbatteryoracboth get the action. The side that is not named keeps its value, orsuspend(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 forhibernatewarns 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=(andresume_offset=for a swap file) on the kernel command line, and the kernel offering thediskstate (/sys/power/state) without secure boot lockdown (/sys/kernel/security/lockdown). Ready: a plan (exit 2) until--yes, thensystemctl hibernate --no-block(without--no-blockthe call would wait until the machine wakes up). The initramfsresumehook cannot be read reliably and is not checked.doctorshows the same checks ashibernation(swap),resumeandhibernate-kernel.charge-limit [PERCENT|off|status] [--yes]uses the kernel attributecharge_control_end_thresholdof eachBAT*(Linux ABIsysfs-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) withsudo install, thendaemon-reload,enable --nowandrestart.off(or 100) disables and removes the unit and writes 100 to the attribute.statusis information (exit 0,supported,limit,persisted). On a laptop whose battery has no such attributePERCENTandoffexit 4. A plan (exit 2) without--yes. Not verified on real hardware (the fake sysfs ofpower-test.shonly).setupinstalls and enablespower-profiles-daemonandupower(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 optionalpower-setupstep behind the answerpower_setup; no wizard question exists yet.doctorchecks 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-settingspulls 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.doctorandgesturesare the older commands of 13.29 and keep working. The rest isbxrig.Input; detection isbxrig.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 is0005Bluetooth,0003USB), then/sys/class/inputfor what the HID scan missed, thenbluetoothctl devices(paired devices that are not connected now) andupower(a battery the kernel did not give), when those tools exist. A device is Apple when the vendor is05ACand the name has "Magic" in it (the Mac's own keyboard is not listed), Logitech when the vendor is046D. 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/*/capacityunder the HID device), then upower;-1is unknown. - Drivers (
hid_magicmouse,hid_logitech_dj,hid_logitech_hidpp) areloaded,built-in,available(modinfofinds it) orabsent:/sys/module/NAME/initstateexists only for a loaded module, a module directory without it is built in, and/sys/bus/hid/drivers/DRIVERmeans the driver is registered.lsmodis 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_sourcekernel|upower,connected,sourcehid|input|bluetooth,gaming),data.drivers,data.helpers(solaar,piper,libratbag(theratbagdprogram),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 (onesudo pacman -S --needed --noconfirmfor the official packages,yayfor AUR ones). Logitech detected:solaar(the Linux Logi Options+; installs a udev rule withuaccess), pluslibratbagandpiperwhen 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=appleis given and the desktop is not Plasma (swipes only; a Magic Mouse has no touchpad gestures here), andupowerfor the battery.--forreplaces detection:detectis the default. logiops is not offered (owner decision). Without--yesit is a plan (exit 2);--dry-runexits 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 packagesofferinstalled (sudo pacman -Rns --noconfirm; your settings in~/.configstay) and the modprobe.d fileapplewrote (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 nohid_magicmousedriver (the report is still printed).--scroll-speed=Ntakes a whole number from 0 to 63 (the rangeparam_set_scroll_speedaccepts indrivers/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) withsudo 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 addhid_magicmouse.scroll_speed=Nto 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, whether42-logitech-unify-permissions.rules(shipped by the solaar package) is installed, and, when Solaar is installed,solaar show(the lines of the form1: NAMEare 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(detectdefault,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 stepinput-devices:bxrig input offer --for=CHOICE --yes(nothing fornone). - 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.bxsandtests/macextras-test.sh. Unverified facts (see the research page): thatupowershows these batteries (the kernel's ownpower_supplyis read first), that Solaar, libratbag and logiops do not conflict on one device (use one tool per device), whetherhid_magicmouseis 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.zoneshows the zone,zone --listlists them,zone ZONEsets it (sudo timedatectl set-timezone, validated againsttimedatectl list-timezones; exit 4 for an unknown one).syncsets the zone once from your IP address withtzupdate(AUR, installed first when missing): the command to run after you land.ntp on|offistimedatectl set-ntp. Everything that changes the system is a plan (exit 2) without--yes.auto on|off|statusfollows your location by itself. It installsgeoclue(extra) andautomatic-timezoned(AUR, 2.0.163). The AUR package ships no systemd unit and the daemon needs GeoClue to run without an agent (its README), soauto onwrites/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), thensystemctl enable --now.auto offdisables 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, andtzupdateflags (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 aMMM d - HH:mmpattern), default%b %-d - %H:%M("Nov 5 - 04:00"). It is anappearance-style setting (acts at once,--dry-run) and rewrites the Noctalia config throughBarSettings; thebxrig/clockplugin reads it as itsformatsetting.- 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]runsnoctalia 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) withnmcli connection modify NAME ipv4.dns ... ipv4.ignore-auto-dns yes ipv6.dns ... ipv6.ignore-auto-dns yes, thenconnection up NAME.dhcpclears them. A plan (exit 2) without--yes; a bad IP exits 2.bxrig kernel list|install NAME|remove NAME.listshows the running kernel, the installed kernel packages and thelinux-cachyos*kernels you could add (nvidia, zfs, rc and headers packages are left out).installissudo pacman -S --needed NAME NAME-headers(the name must matchlinux(-[a-z0-9]+)*and exist in the repos, else exit 4 or 2).removerefuses the running kernel (judged fromuname -rand 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/sudois ever changed (never login, SDDM or the lock screen); the line isauth sufficient pam_fprintd.soorauth sufficient pam_u2f.so cueinserted before the firstauthline and marked with a# bxrig KINDcomment, so your password still works without the reader or key; a file with noauthline is left alone (exit 4); the original is kept once as/etc/pam.d/sudo.bxrig-backup;offremoves exactly the marked line; runningontwice adds one line.fingerprint enrollrunsfprintd-enroll;fido2 registerrunspamu2fcfginto~/.config/Yubico/u2f_keys, andfido2 onrefuses (exit 4) until that file exists.passwordless-sudo onwrites/etc/sudoers.d/50-bxrig-nopasswd(USER ALL=(ALL:ALL) NOPASSWD: ALL, user from$USER` and checked against `^[a-z_][a-z0-9_-]*$) only aftervisudo -cfpasses, with mode 440;offremoves it.ssh-server on|offinstalls openssh and runssystemctl enable|disable --now sshd.service. Everything is a plan (exit 2) without--yes, and--dry-runprints the exact line or file.- Agents: the Agent menu runs
ai launch NAME; there is no separateagentcommand. - Menu: Trigger > Toggle (stay awake), Setup > DNS, Security, Time, Kernel. Verified:
tests/tweaks-test.shandtests/security-test.sh(fake nmcli, pacman, noctalia, uname, visudo, sudo and fake/etc/pam.dand/etc/sudoers.d). Not verified on a real machine: PAM behavior with a real reader or key,nmclion 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.jsonholds, 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.shwritesdocs/reference/commands.md(the docs page: flags, exit codes, the JSON envelope, an index by group, then every command with usage and examples) andsrc/bxrig/HelpData.bx(the same data inside the binary). bxrig help(and barebxrig) lists every command by group with its summary;bxrig help NAMEprints the summary, usage, whether--yesis needed, examples and notes;--jsonreturns the same data; an unknown name exits 2.- Drift checks:
gen-docs.sh --checkfails when a command insrc/Main.bxhas 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 insrc/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 naskeeps every NAS you use in~/.config/bxrig/nas.json(name, host, protocolsmbornfs, user, optional SMB version, and the shares you mounted).discoverbrowses the network withavahi-browse -rtp _smb._tcpand_nfs._tcp(IPv4 only).setupinstallscifs-utils nfs-utils smbclient avahi nss-mdns rsyncand enablesavahi-daemon(a plan without--yes; every tool was checked in the Arch repos and its binary exists after install).add NAME --host=Hneeds--userand a password for SMB (--ask-password, typed hidden, or--password-file=F); the password goes to the keyring asBXRIG_NAS_<NAME>_PASSWORDand never intonas.json. NFS needs neither. Names are^[a-z][a-z0-9-]{0,30}$.shares NAMElists SMB shares withsmbclient -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 withshowmount -e --no-headers.mount|unmount NAME SHAREmounts at~/NAS/NAME/LEAF(BXRIG_NAS_HOMEoverrides) withsudo mount -t cifs|nfs; the SMB options arecredentials=/etc/bxrig/nas/NAME.cred,uid,gid,iocharset=utf8,file_mode=0600,dir_mode=0700plusvers=only when you set one (otherwise the kernel negotiates the highest version both sides support). The credentials file is root-only (mode 600) becausemount.cifsreads it as root; the plan says so.auto on|off NAME SHAREwrites<escaped-path>.mountand.automountunits to/etc/systemd/system(Options=...,nofail,TimeoutSec=20,TimeoutIdleSec=600, wanted bymulti-user.target), runsdaemon-reloadandenable --now, so a sleeping NAS never blocks login.offdisables 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 plainrsync -amirror 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]recordstargets.nas-NAMEin~/.config/bxrig/backup.json({type: nas, nas, share, path});backup data setupreads it.- Verified:
tests/nas-test.shwith 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-mdnsname resolution.
13.42 refresh and reinstall (decided with the owner 2026-11-13)
- No factory reset.
bxrig refresh COMPONENTputs managed config back to what BxRig ships and never installs a package. Components:hyprland(runskeys apply,appearance apply,display apply; with--starteralso the starterhyprland.lua),noctalia(theme set CURRENT,appearance apply,noctalia msg config-reload; with--starteralso 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.zshrcor.bashrc),nvim(editor refresh),theme(theme set CURRENT,appearance apply),all, andlist. - 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--forceoverwrites 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--yesit prints the plan and exits 2;--dry-runexits 0. reinstallisinit --rerun: the way to install packages again.- Verified:
tests/refresh-test.sh(temp home, fakebxrigthat logs the commands, a fake terminal): plan and dry run write nothing, files are written, a second run rewrites nothing clean, edits are kept,--forceoverwrites 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) andbackup data(your files, restic) are built in that order;backup sendandbackup exportmove any of them, andtimemachineshows 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) plusID.json.IDisyyyyMMddTHHmmss(with-xxxxwhen two land in the same second). Inside:files/(paths under your home),packages.txt(pacman -Qqe),foreign.txt(pacman -Qqm),meta.json, andsecrets.bxsonly with--with-secrets(the output ofbxrig 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 PATHchanges the list (stored inbackup.json); SSH keys,gnupg,..and absolute paths are refused..git,node_modulesand*.logare 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=PATHlimits it).--packagesinstalls the explicit packages that are missing and exist in the repositories withsudo pacman -S --needed --noconfirm; AUR and local ones are listed foryay, never installed from here.diff IDcompares a snapshot with now (files same, changed, missing, and missing packages). -
Automatic:
autois on by default. Beforeupdate apply,system update,init,reinstallandrefresh(with--yes, never--dry-run) a snapshot is taken quietly, with the reasonbefore <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]installssnapper snap-pac(andgrub-btrfsonly when GRUB is in use), creates therootconfig (snapper -c root create-config /;--homeadds/home), sets the timeline to 5 hourly, 7 daily, 2 weekly, 1 monthly, 0 yearly (snapper set-config TIMELINE_*), and enablessnapper-timeline.timerandsnapper-cleanup.timer(andgrub-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.listreadssnapper --jsonout -c CONFIG list(snapshot 0, the live system, is left out);create [--description=T]issnapper create --description T -p;delete ID;changes IDissnapper status ID..0;restore ID PATHissnapper 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 withrestore. Everything that changes the system is a plan without--yes. Not verified on real Btrfs: the JSON shape ofsnapper --jsonout list(the parser accepts a bare array or an object holding one array), the timers,undochange. Tested with fakes intests/backup-snapshots-test.sh. -
backup data(your files, restic). A target is a place a restic repository lives:local(a path),nas(made bynas use, at~/NAS/NAME/SHARE/PATH),sftp(sftp:user@host:/path; port assftp:-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, withGOOGLE_PROJECT_IDandGOOGLE_APPLICATION_CREDENTIALSas the project and the service-account file) andrclone(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 (-rviaRESTIC_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-filewithKEY=VALUElines) asBXRIG_BACKUP_<TARGET>_<KEY>; the repository password is generated atinit(24 random bytes, hex) and kept asBXRIG_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 tobackup.json. runbacks up the include list (defaultProjects code dev Documents .ssh, only the ones that exist) skipping the exclude list (defaultnode_modules target .gradle __pycache__ .venv venv .cache .next *.tmp) and cache folders, on one filesystem, taggedbxrig;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,retentionchanges it; deletes older backups for good, so it is a plan first),schedule hourly|daily|off(user unitsbxrig-backup.serviceand.timer:ConditionACPower=trueso it skips on battery,Persistent=trueto catch up, a random delay up to 15 minutes; a failed scheduled run sends a Noctalia ornotify-sendnotification). An unmounted NAS share exits 4 with thenas mountcommand.- Verified:
tests/backup-data-test.shwith 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.
- Keys go straight to the keyring (
-
backup sendandbackup export(moving backups).send ID|all --to=TARGET [--from=TARGET]isrestic copyinto a second repository (a NAS and a cloud bucket, for a 3-2-1 setup): the destination isRESTIC_REPOSITORY, the source goes inRESTIC_FROM_REPOSITORYwithRESTIC_FROM_PASSWORD_COMMAND=printenv BXRIG_FROM_PW, so no password is on a command line. restic reads one set ofAWS_*,B2_*... variables, so two repositories that need different values for the same variable (two S3 accounts) are refused (exit 4) with a pointer torclone sync.export data ID --to=FILEisrestic dump --archive tar|zip --target FILE ID PATH(zip when the name ends in.zip;--pathlimits it to a folder; an existing file is never overwritten),export config ID --to=FILE.tar.gzcopies a config snapshot out as one file. Config snapshots travel with the data backups:~/.local/share/bxrig/backups/configis in the default include list, so a NAS or cloud target protects them with no extra step. System snapshots are not exportable. Tested intests/backup-move-test.shwith a fake restic.
13.44 BxTimeMachine, the backup screen (decided with the owner 2026-11-13)
-
bxrig timemachine [--demo] [--local](alsobxrig bxtimemachine) is BxTimeMachine, a full-screen terminal UI on MatchBox's canvas (the same one as the wizard) overbxrig backup timeline [--json] [--local], which lists every backup in one structure: rowssystem(snapper),config(config snapshots),files-NAME(one per data target, fromrestic snapshots --json) andmirror-NAME(recordednas syncruns). 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 anerror(unreachable, not initialized, NAS not mounted), never a failure of the whole timeline;--localleaves out the targets that need the network so the screen opens at once.BXRIG_TIMELINE_FILEinjects a timeline (tests);BXRIG_NOW_EPOCHfixes 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
bxrigcommands, and every change goes through a plan first: it runs the command with--dry-run, shows the plan, and runs it with--yesonly ony. Open:backup data files ID --json,backup config show ID --jsonorbackup snapshots changes N. Restore:backup data restore ID --to=~/Restored/ID [--include=PATH],backup config restore ID [--only=PATH]orbackup 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 noworbackup snapshots create. Config snapshots reach a NAS or the cloud through the data backups (they are in its include list). -
--demoshows 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.pyrecords 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 viarender_to_string) andtests/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 addstargetsandschedule). Derived from the existing layers:BackupTimeline.configRowandsystemRow,BackupConfig.readSettings(auto),BackupSnapshots(tool, configs, the snapper timeline timer),BackupData.readAll(targets, schedule anddata.runs, the last success and last failurebackup data runrecords per target in backup.json) andSystemd.nextRun(show --property=NextElapseUSecRealtime --timestamp=unix --value). Health:okwithin the limit and no failure;warnolder 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;nonenothing to judge.sizeis bytes (config snapshots only, else 0).actionis 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 nobackup now. Exit 0. The time maths moved toutil/Clock.bx(BackupTimelineforwards to it, soBackupDatacan 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_typenone, s3, b2, azure, gs, sftp, rclone or local, withremote_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-onlybackupsquestion is gone;resticis 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) andbackup 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 placebackup-init-PLACE,backup-default,backup-schedule;backup-snapshots;backup-config-offwhen 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 NAMEchooses 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 inTuiList(cursor, scroll, filter) and runs throughTuiRunner(one loop that always restores the terminal). The wizard and BxTimeMachine use it; their tests did not change. - Command:
tui [PAGE] [--demo] [--json]. Without--jsonit needs a terminal (exit 4 without one).--jsonprints the page's data ({ data, attention, cursor }) and exits 0; an unknown page or more than one word exits 2.--demouses 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 }. Acliintent first runs the command with--dry-runand shows the output as the plan; onlyyruns 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
checkupdateswhen 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 --jsonandvm 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 (
ListPagewith 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 -ltnpHandps; one row per port and pid; two owners on a port is a conflict), Packages (livepkg search), Shortcuts (keys show), Machines (VMs only:vm list), Databases (db list), Storage (nas list,cloud status), Secrets (secrets list, a value only throughsecrets get --show), Themes (theme list) and Logs (journalctl -b -o json -p, priority cycles error, warning, info). Keys compare exactly (Kis notk). 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 }(runbxrig ARGSat 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, pluse738for Java; all checked against the Symbols Nerd Font) or""when icons are off. Pages say which icon they use withicon().tui --icons=on|offandBXRIG_ICONSdecide; otherwise a Nerd Font found byfc-listturns 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),
miseandnvmactions, 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_releasesand/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 isjava.shandjava.fishin~/.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 fromapi.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 isget.sdkman.io?rcupdate=false, which leaves.bashrcand.zshrcalone; commands run inbash -cwithSDKMAN_DIRexported andsdkloaded frombin/sdkman-init.sh;sdk installgetsnon stdin (the first install becomes the default by itself, a later one does not),removeissdk 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 throughsdk.shandsdk.fish(PATH andMAVEN_HOME,GRADLE_HOMEpointing at eachcurrentlink); Java stays withjava.sh.java installuses SDKMAN when it is installed (a major picks the newest Temurin, an identifier is passed on) and the direct Adoptium download otherwise;java removeof a SDKMAN home runssdk 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 namedbxrig-mail, SMTP on127.0.0.1:1025, web inbox and REST API on127.0.0.1:8025(both ports can be changed; ports are 1024 to 65535 and must differ, else exit 4). Everything is bound to127.0.0.1. The engine is the onedb enginechose (podman by default). - Thrown away on stop. Without
--keepthe container runs with--rmand no volume, sostopdeletes it and its mail. With--keepit runs with--restart unless-stopped, the folder~/.local/share/bxrig/mailbind-mounted at/data:ZandMP_DATABASE=/data/mailpit.db, so mail survives stop and start.removedeletes the container and the stored mail;--keep-datakeeps the folder.start,remove,clearanddeleteplan first (exit 2 without--yes,--dry-runexits 0);test,open,list,show,env,stopandstatusact at once. The ports andkeepare remembered inmail/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) andMP_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[]withID,From{Name,Address},To[],Subject,Created,Size,Attachmentsas a count,Read,Snippet),GET /api/v1/message/{ID}(Text,HTML,Cc,Bcc,Date,Attachments[]withFileName,ContentType,Size),DELETE /api/v1/messages(all, or a body{ "IDs": [...] }),POST /api/v1/send(From{Email,Name},To[{Email}],Subject,Text) andGET /view/{ID}.html(opened withxdg-open). HTTP goes throughcurl. 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; forshow:to_list,cc_list,bcc_list,sent,body_text,body_html,files[]withfile_name,type,bytes; fortest:recipient,subject_line): MatchBox keeps the capitalisation of the first spelling of a key it sees, so a field calledidcame out asIDafter parsing the API'sID. Fields that do not clash (total,unread,smtp,web) keep their names. mail envprints 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.dplansmail delete ID,cplansmail clear,orunsmail open IDat once,trunsmail test,rreloads. The page reloads itself every 3 seconds (the provider'srefreshSeconds();ListPagereloads inpaintonce enough ticks have passed, not while you are typing a filter, and keeps the cursor on the same message by itsid). Providers can also saydetailLines()(default 2) to get a taller detail box. Demo data undertui mail --demo. - Wizard and menu: one yes or no question
mail_catcher(default no) after the databases questions; InitPlan adds the optional stepmail-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
:Zlabel on non-SELinux hosts, whether Mailpit createsmailpit.dbin 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 foldersrc/bxrig),BXRIG_*(environment),~/.config/bxrig,~/.local/state/bxrig,~/.local/share/bxrig,~/Pictures/BxRig, themesbxrig,bxrig-light,bxrig-midnight,bxrig-cyan,bxrig-forest, skillsbxrig,bxrig-ai,bxrig-apps,bxrig-desktop,bxrig-install-update,bxrig-system, systemd units and launchersbxrig-*, containersbxrig-*with labelsio.bxrig.*, the Hyprland modulebxrig.lua, the keyring servicebxrig, release assetsbxrig-linux-x86_64and the S3 folderortussolutions/bxrig/. BxTimeMachine keeps its name. - Brand:
Brand.bxholds 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,versionandhelpat a terminal (24-bit colour unlessNO_COLOR), and the installer banner.docs/brand/bxrig-ascii.txtshows every size;assets/build.pydraws 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 )forbxcachy-cloud-, theX-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.jsonref,scripts/dev-build.sh,scripts/get-matchbox.sh, the matchbox workflow and its S3 folderortussolutions/bxcachy/matchbox: they belong to the MatchBox repository and the owner's bucket); the docs domainbxrig.boxlang.io(the owner moves it); the legacy reference treeartifacts/legacy/andplan.mdhistory (records of what was). The word CachyOS is factual and stays. The local directory/home/user/bxcachyis 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.tuiopens the Control Center on the Dashboard with the sidebar;tui PAGEopens 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.--sidebarand--no-sidebarforce the sidebar open or collapsed (the argument parser turns--no-sidebarintosidebar=false, so it is one option and the last flag wins). - Pages:
ControlCenterPagesis 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:
\andCtrl+btoggle it (while a page is taking text onlyCtrl+bdoes); 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 breadcrumbBXRIG > Pageand 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 menuhas a last section, Control Center: the first entry opens the whole Control Center, then one entry per page with its icon name; each opensbxrig tui PAGEin the default terminal (detached, the terminalai launchuses). Without a terminal the entry exits 4. - Launchers (opt-in):
launchers on|off|status [--yes] [--dry-run] [--json].onwrites~/.local/share/applications/bxrig-tui-PAGE.desktopper page (Name=BxRig Databases,Icon=bxrig,Categories=X-BxRig;(orX-BxRig-Develop,X-BxRig-System,X-BxRig-Lookfor 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.pngandhicolor/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 byassets/build.pyand rendered bynode assets/render.js icons.status --jsonhasicons(how many of the 8 files exist) andicon(all of them). An entry you edited is kept and reported;offandremove launchersdelete 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) asbxrig-wizard.desktop,bxrig-runner.desktopandbxrig-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.directoryandbxrig-develop|system|look.directory(name and icon) and~/.config/menus/applications-merged/bxrig.menu(nested<Menu>, oneX-BxRig*category each); all carry the marker, are removed byoffonly when no edited entry is kept, andstatus --jsonhassubmenu. Menus without folders (rofi, fuzzel, GNOME) list the entries flat. NoStartupWMClassis 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 nobase64, 6 write failed. Nothing is installed unless asked. - Shortcuts: each page has a shortcut-table row
tui-PAGEwith no keys (unbound, runsbxrig 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.
| Page | Answers (keys in answers.json) | Runs or writes |
|---|---|---|
| Desktop | desktops (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 |
| Look | theme (dark, light, auto; this is the mode, not a theme name), dock, bar_position, world_clock, world_clock_zones (IANA zones); no theme list | setup 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 once | appearance bar layout X |
| App grid style (after Top bar layout; Hyprland and Both) | appgrid_style (launchpad default, terminal). Both grids are drawn side by side | appearance 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 theme | theme set X |
| Input and languages | keyboard_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 identity | git_name, git_email, ssh_key, shell (zsh default, fish, bash; Starship always), terminal (ghostty default), terminals_extra, editor | git config, ssh-keygen, setup shell, setup terminal, setup hyprland --terminal |
| Toolchains | toolchains (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 |
| Containers | container_engine (podman default, docker) | package and service setup |
| Databases | databases (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 |
| VPN | vpn (Tailscale, WireGuard, OpenVPN, Mullvad, Proton) | catalog and services; the commands are in 13.58 |
| Password manager | password_manager (Bitwarden, KeePassXC, 1Password, Proton Pass, Enpass, NordPass, Keeper, Bitwarden CLI, pass, gopass; each value is a catalog id) | catalog |
| Gaming | gaming (none, steam, bundle) | catalog (CachyOS gaming bundle) |
| Apps | app_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 storage | snapshots, backup_target (restic or borg), mounts, cache_cleanup | snapper, timers |
| Import | dotfiles_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.
initnever 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.mdsection 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 providerssystem,noctalia,rofi,walker,krunner,vicinae,hyprrunner,custom; menu providersrofi,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-tuiin the native runner (task W2). Until theninit --answersis 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.imageandimageOrTile(drawing, via MatchBoxtui.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 itsInheritsbefore hicolor, anIcon=name used as it is, SVG-only icons rasterized once to~/.cache/bxrig/images/svgbyrsvg-convertor 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.
appsis 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;--jsonprints 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 usesAppsDataas it is. - Sources of truth. Installed:
.desktopfiles, ONEpacman -Qofor all of them,pacman -Qm(AUR),pacman -Sl(repository names),pacman -Qi(size, date),flatpak listwhen flatpak exists. Discover: the embedded catalog first, thenbxrig pkg search --jsonfor the repositories and the AUR, run in a detached background job. Updates:checkupdatesandyayorparu -Quain 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,qquits, 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 IDorbxrig pkg install NAME [--aur]with its own--dry-runplan. Remove is anexecintent whose plan is written in words (what else goes, who needs it, that home files stay) and runsbxrig pkg remove NAME --yes. Update all isbxrig system update. Nothing runs beforey. - Tests.
tests/apps_manager_test.bxs(parsers, model, screens at 80x24 and 120x36),tests/apps-manager-test.sh(fake pacman, checkupdates, flatpak and.desktopfiles; asserts-Qois 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.Outis 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 createOutfrom insideOut/Cli.scopedchains of its own class (MatchBox overflows the stack when a classnews itself). - Processes:
Proc.exec( argv, timeout )never throws ({ exitCode, output, timeout }, 127 and the reason when the program cannot start),rawmay throw,has( name )iscommand -vwith the name as an argument (never run the tool),works( name )isname --version,isRoot(),self( args, timeout )runs BxRig itself (BXRIG_SELF).Installer.proc()hands the same injected test runner to a class;Installer.hasCommandisProc.has, so a tool without--versioncounts as installed. - Paths:
Env.BXRIG_*_HOME, thenXDG_*_HOME, then$HOMEfor every folder:xdgConfig( sub ),xdgData,xdgState,xdgCache(shared with other programs) and BxRig's ownconfig,data(BXRIG_DATA_HOMEis the folder itself),state,cache. A user withXDG_CONFIG_HOMEset now gets every BxRig file under it (bxrig/,menus/,nvim/,strata/);tests/paths-test.shguards 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,launcherfor BxRig's ownX-BxRig-Launcherentries),dirs( withFlatpak )(BXRIG_APPS_DIRS, olderBXRIG_DESKTOP_DIRS),entries( dirs, launchers, needExec ),iconName,cleanExec,render( lines ). The Apps page leaves BxRig's launchers out; theappslauncher grid keeps them. - Package layout.
src/bxrig/has one class per command or feature (152 classes, 4,982 lines of generated*Data.bxamong them);src/bxrig/util/has the 23 shared helpers, reached asbxrig.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,Luaand the generatedVersion. A helper never holds a command's job and a command never holds a helper's;tests/dry-test.shkeeps the copies from coming back. - Command registry.
docs/reference/cli.jsonholds every command (name, group, summary, usage, examples, flags with types, note).bootstrap/gen-docs.shwritescommands.md,command-flags.md,HelpData.bx(bxrig help) andCommandFlagData.bxfrom it and fails whenMain.bxhas 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.CommandSpecanswers flags and usage at run time. - Unknown command exit. A command that is not in
Main.bxprints "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 bydefault browserand the wizard) started in its private mode, detached withProc.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-openon DIR, else on the working directory of the focused window (hyprctl activewindow -jfor the pid, the newest child bypgrep -Pdown at most 8 levels,readlink /proc/PID/cwd), else the home folder.default filemanagerdecides 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 secondtoggleends it (pkill -f). The Hyprland module floats the window classbxrig-webcamat 360x270. Exit 4 withoutmpvor/dev/video0. Key:Super+Ctrl+Alt+V.window quakeandwindow quake send(MacExtras): the special workspaceqconsole.quakerunshyprctl 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 withhyprctl dispatch exec "[workspace special:qconsole] TERMINAL".quake sendismovetoworkspacesilent special:qconsole. Keys:Super+Shift+Grave,Super+Ctrl+Grave;Super+Gravestays the AI shell.record ... --audio=desktop|mic(Record): adds-a"DEVICE"towf-recorder: the monitor of the default sink (pactl get-default-sinkplus.monitor) or the default source (pactl get-default-source). Both at once is not offered (wf-recordertakes one device). Exit 2 for another value, 4 withoutpactl. 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, keySuper+Ctrl+H. It replacesSetup > 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.shandmenu-test.sh(fake tools). Not verified on a real Hyprland session: the quake workspace, the focused window's folder, the webcam window rule andmpv'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:
| Command | Class | Reads | Exit 4 when |
|---|---|---|---|
bxrig audio status | Audio | pactl --format=json info, list sinks, list sources | pactl missing, or no sound server answers |
bxrig bluetooth status | Bluetooth | bluetoothctl show, devices Paired, devices Connected, bluetooth.service | bluetoothctl missing |
bxrig wifi status | Wifi | nmcli -t radio, device status, active access point | nmcli 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 } ] }.stateisconnected,connecting,disconnected,login(log in first),unavailable(daemon not running) orunknown. A profile's id isnm:NAME.vpn status [NAME]what is connected (one provider with NAME).vpn locations NAMEthe places it can connect to:{ provider, can_pick, current, locations: [ { value, label } ] }with the reserved first entriesdefault(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]andvpn disconnect [NAME]start or stop a program, so they act at once and take--dry-run(the exception of 2.11). Without a NAMEdisconnectstops 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.jsonthrough the config service,--dry-runshows 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),setwithout--yes; 4 no VPN installed (status, connect, disconnect, locations), a known provider that is not installed, or no NetworkManager for annm: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}) orselectplusselect_order(beforeorafter, for apps that pick a place in a separate command) andselect_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 inVpnParsers(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
notesays exactly what): NordVPNstatus,connect,disconnect,countries(support.nordvpn.com); Tailscaleup,down,set --exit-node=(an empty value clears it),exit-node list,status --json(tailscale.com/kb/1080/cli); Mullvadstatus,connect,disconnect,relay list,relay set location COUNTRY [CITY](mullvad.net);nmcli connection show|up|down,-tescaping of:(NetworkManager manual). Not verified: NordVPNconnect COUNTRYby name (fromnordvpn help connect, the page showsconnect CODE SERVER); the exact text ofmullvad statusandrelay listbetween app versions; the Tailscale JSON field names (the page only says "detailed JSON"); NordLayerstatus,gatewaysanddisconnect(help.nordlayer.com confirms onlynordlayer connect GATEWAY-IDandnordlayer settings set), so its parsers are tolerant and its adapter sayspartial. - Catalog:
nordlayeris a new catalog app (aur, targetnordlayer, kind desktop, optional; the AUR RPC listed it on 2026-11-17 as version 3.6.0, a community package of the vendor's.debfrom downloads.nordlayer.com; the vendor ships only.deband.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(fakenordvpn,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 sharedbxrig.luau,translations/en.json), plugin idbxrig/vpn,plugin_api = 43. It is installed and enabled like the others:Startercopies every template folder,NoctaliaConfigwrites[widget.bxrig-vpn](type = "bxrig/vpn:bar") and addsbxrig/vpnto[plugins] enabled. - Bar. Standard and Dense carry
bxrig-vpnright afterbxrig-devand beforetray(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-checkinprimarywhile a VPN is connected,shieldinon_surface_variantotherwise. Noctalia's palette has no success role, soprimary(the brand green) means connected. A second VPN adds its count. The widget hides itself (barWidget.setVisible(false)) until the first answer and wheneverbxrig vpn listhas 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 (
primaryconnected,tertiaryconnecting,errorlog 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 fromvpn locations NAME --json; a click runsvpn connect NAME --location=VALUE. The bottom switch "Allow more than one at the same time" runsvpn set allow_several=true|false --yes; with two connected a line warns about clashing routes and DNS. A row whose state isloginorunavailablehas 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 --yesin 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.runAsyncwith 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 cannedbxrig vpnanswers (list, toggle, place pick, allow several, empty state). Open: the look of the rows,ui.inputfocus on the places page,setVisiblebefore 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.bxsandtests/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'scurrentsymlink,boxlang --versionis 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) ismiss:miss matchbox 0.13.2 (cannot compile BxRig; install: install.sh toolchains --yes --matchbox-branch bxrig), and the exit is 4.--jsoncarriescompiles_bxrig. - Exit: 0 when every tool is there, 4 (precondition) when any line is
miss; 2 for arguments it does not take.--jsonenvelope:data: { ok, tools: [ { id, group (workstation|native), ok, version, detail, fix } ] }. Classbxrig.Doctor; testtests/doctor-test.sh(fake tools on a PATH that holds onlyshand 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) andlogo(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'stui.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--yesis 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_screensaverisaction = "command",command = "'BXRIG' screensaver start",resume_command = "'BXRIG' screensaver stop", so coming back closes it;bxrig_lockis Noctalia's ownaction = "lock". Both count from the start of idle and respect idle inhibitors (a video,toggle stay-awake). The starterconfig.tomlcarries the section; a change is sent to a running Noctalia withnoctalia msg config-set(reported asapplied,not runningorskipped).hypridleis no longer started or installed: BxRig never wrote a config for it. - Windows (Hyprland).
startopens one terminal per monitor fromhyprctl monitors -j, with the classbxrig-screensaver(ghostty, kitty, alacritty or foot, the xdg-terminals.list one first), throughhyprctl dispatch exec "[monitor NAME] ..."and, when that fails, the Lua formhl.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.startdoes nothing when one is already open;stopkills the pidshyprctl clients -jgives for the class. With neither Hyprland nor Plasma,startexits 4. - Plasma (2026-11-18).
ScreensaverPlasma: the idle watcher is a user service,~/.config/systemd/user/bxrig-screensaver-idle.service, runningswayidle -w timeout SECONDS "BXRIG screensaver start --idle" resume "BXRIG screensaver stop"(KWin implements ext-idle-notify-v1);on,offandsetwrite, enable and restart it, or disable it, and nameswayidlewhen it is missing (setup plasmainstalls it).start --idlefirst asksorg.freedesktop.PowerManagement.Inhibit.HasInhibitand does nothing while something holds the screen awake, since KWin's idle timer has been reported to ignore inhibitors.startwritestemplates/kwin-screensaver.jsto~/.local/share/bxrig/kwin/, loads it once over D-Bus (org.kde.kwin.Scripting.loadScript, thenstart), and opens one terminal per enabled output fromkscreen-doctor -j; the script sends each newbxrig-screensaverwindow 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).stopkills the terminalspgrep -ffinds by the class. The lock is Plasma's own:kscreenlockerrc [Daemon] AutolockandTimeoutin whole minutes (rounded up),lock=0setsAutolock=false; a running lock daemon is told withqdbus6 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) andtests/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.Distroreads/etc/os-release(ID,ID_LIKE,VERSION_ID);BXRIG_DISTRO(arch, suse, debian, ubuntu) overrides it, and tests and CI set it toarch. An unknown system reads the Arch catalog, andsetupand 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 withforpackages, acheckpath under/etc,commandsandfiles), andapps(source+targets, and on Archrepo/pkgbuild/aur_targets/script).extendsmergesnames,appsanddefaultsfrom a parent; a child'sreposreplaces the parent's.ubuntu.jsonextendsdebian.json.Catalog.load(distro)merges the entry into each app; an app without one is inunavailableand is not offered. Web apps need no entry. - Sources: arch
pacman aur pkgbuild script unresolved; susezypper flatpak script; debian and ubuntuapt flatpak script.catalog checkchecks every install file (checkAll);catalog coveragereports offered and unavailable per distribution;catalog list|show --distro=Dreads another one. - Package layer:
util.Packages().native(proc, distro)givesPacman,ZypperorAptwith one interface (install, remove, upgrade argv, installed, versions, search rows, pending updates). Arch names are translated throughnameseverywhere setup and the installer name a package. Apt runsapt-get updatebefore an install or upgrade. - Flatpak fallback: an app the distribution does not package is installed from Flathub with
flatpak install --user; the plan addsflatpakitself 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.sourcesfile). 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 installexits 4 elsewhere). catalog map DISTRO [--write] [--json]: run on that distribution; for each app tries the Arch names throughnames, 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.--writeupdates the install file. Exit 4 off that distribution.- Bootstrap:
install.shandweb-install.shpick pacman, zypper or apt-get fromos-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 plasmastops on Debian 13 (Plasma 6.3; HyprKwin needs 6.6). Flatpak installs could not run there (no user namespaces in the container).
Menu state and the Omarchy-parity commands (decided with the owner 2026-11-21)
- 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:
whenon an entry (MenuTree.when): factslaptop,touchpad,touchscreen(udevadmID_INPUT_TOUCHPAD|TOUCHSCREEN=1),webcam(/dev/video0),hyprland,plasma,hybrid-gpu(two PCI class 0x03 devices);installed:ID;!negates;a,bis both.BXRIG_MENU_FACTSreplaces detection. Install's catalog lists hide installed apps. - User menu file:
~/.config/bxrig/menu.jsonwithadd(underid,label,commandprogram argv orbxrigargv,terminal),hide(ids),rename(id: label). Mistakes are warnings (menu items,menu file), never fatal.menu file --yeswrites the example. - system restart shell|audio|wifi|bluetooth: plan until --yes. shell:
pkill -x noctaliathensetsid noctalia, orsystemctl --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:
passwdon /dev/tty. system firmware [check|update --yes]:fwupdmgr refreshandget-updates(exit 2: none); update runsfwupdmgr updateon /dev/tty. system speedtest network|disk:speedtest-cli --simple;dd1 GiB with direct I/O in ~/.cache. - default editor neovim|vscode|zed|kate:
xdg-mime defaultfor 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--headlessis not documented, so it is not used); a file chooser (kdialog, zenity) without paths; receive openslocalsend. - 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-SIZEand titlebxrig-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+Sis Save in the Mac style), zoom, close all, dismiss all notifications, media keys (playerctl, now part ofsetup hyprland), keyboard backlight.Delete,Home,Endand the media and keyboard-backlight XF86 keys are valid key names. - Catalog:
handbrake(Flathub on openSUSE: not in its main repositories) andspeedtest-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 NAMEfor 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_serversfromnmcli -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).dnsdata gainsprovider(a preset id,dhcporcustom). - system speedtest last [--json]: the last result of each test,
~/.local/state/bxrig/speedtest-last.json={ network, disk, dns }, each stampedat(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 runsdns ID --yes, and Open in Control Center (tui network).noctalia msg panel-toggle bxrig/system:panel networkasks 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 (
dfon /, the last disk test,trunssystem speedtest disk).
Accessibility (decided with the owner 2026-11-22)
- accessibility [status] [--json]:
data{ zoom, zoom_level, reduce_motion, contrast }; everythingoffby 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 zoomonon, and the kglobalaccel shortcutsview_zoom_in,view_zoom_out,view_actual_sizeof thekwincomponent. No Hyprland or Plasma session: exit 4 for the keys. The floating-resize keys moved toSuper+Ctrl+Alt+Minus|Equal. - accessibility reduce-motion on|off|status: runs
bxrig appearance animations off|on(Hyprland look.lua and Noctaliashell.animation.enabled), thengsettings set org.gnome.desktop.interface enable-animations false|trueandkwriteconfig6 --file kdeglobals --group KDE --key AnimationDurationFactor 0|1where 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 andoffsets it back (bxrigwhen 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 bytests/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_factorcall and the KWin D-Bus names were checked against their documentation only.
Fonts (decided with the owner 2026-11-22)
appearance fontstays the coding font (terminals). It sets Noctalia'sshell.font_familyonly while no interface font is set, so existing setups keep working.appearance ui-font list|ID|install ID [--yes]is the interface font: Noctalia'sshell.font_familyand GTK'sfont-name. Plasma is left alone, with a note.appearance font-rendering default|smooth|crisp|sharp|statuswrites one fontconfig file through ConfigService (backup and journal) and GTK'sfont-hintingandfont-antialiasing.defaultremoves only a file BxRig wrote.- Both are settings: they act at once,
--dry-runshows the commands. Both are remembered in appearance.json (ui_font,rendering) andappearance statusshows 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
cloudprofile); 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.onandoffchange ~/.gitconfig, so they print a plan until --yes.onneeds the key and git user.email (exit 4 with the fix).offkeeps the key and the allowed signers file. The wizard offersonafter 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 theboxlanglauncher (no runtime start), the latest from downloads.ortussolutions.comversion-latest.properties, modules frombx-module outdated. That command asks "update now?" on /dev/tty, so BxRig runs bx-module undersetsid(no controlling terminal) and the question fails instead of waiting. Exit 10 when BoxLang or any module is behind, asupdate check.boxlang updateprints a plan until --yes.modules removetoo;modules updateandmodules installkeep running at once (as before), and honour --dry-run so the Control Center can show its plan.boxlang home: BOXLANG_HOME, else ~/.boxlang.runandreplhand the terminal toboxlangand return its exit code.- No
new,testor 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. Nonew,testor 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 throughbox 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 --jsonwithout 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 schedulein 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, on
s, 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 notificationsandbackup data schedulechange 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 isscheduler 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 showadds 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 --jsonwith the updates every 10 minutes and draws a red dot while a task fails. doctor --devhas a scheduler row (installed, no task failing); init has an optional scheduler step.
Calendar (decided with the owner 2026-11-22)
bxrig calendarkeeps calendars on this machine with vdirsyncer: an iCal address (read only,collections = null, webcal:// fetched as https://) or Google Calendar (google_calendarstorage, 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 agendareads those files with bxrig.Ical (pure: VEVENT, all-day dates, UTC times moved bydate +%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|--inkeeps reminders in ~/.config/bxrig/reminders.json;remind dueshows 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 installwhen calendars or reminders exist.Scheduler.upsertnever 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 launchermakes Vicinae BxRig's launcher. setup is a plan until --yes:runner set vicinaeandrunner menu-set vicinae, the theme written and selected withvicinae theme set bxrig, the script commands written, andvicinae serverstarted whenvicinae pingfails. Vicinae's settings.json (JSONC, the user's) is never edited.- The theme is a generated file of
theme setlike 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 setselects 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 usesvicinae 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 } ]).
| Command | Does |
|---|---|
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 NAME | the 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, thenExecStart=/bin/sh -c "cd .build && BOXLANG_HOME=P/.build/runtime exec boxlang-miniserver --port N --host 127.0.0.1", withEnvironment=BXRIG_SELF=PATH(BxRig's full path, for the agent's tools: a user service's PATH may not have~/.local/bin) andRestart=on-failure.BOXLANG_HOMEis 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). NotbxAgents 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.buildwith theminiserver.jsonthe build wrote is what bx-agents' deploy targets do; the flags win over the file.WorkingDirectoryis the project, because.builddoes 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 installkeeps the zip's 1980 dates, so a reinstalled jar would load the old copy (measured:NoMethodExceptionon a method the new jar has). It is deleted after every install (BXRIG_BOXLANG_JARSnames another folder). - Test hooks:
BXRIG_BXAGENTS(the bxAgents launcher, elseBOXLANG_HOME/bin/bxAgents, else the PATH),BXRIG_MINISERVER(boxlang-miniserver, else the PATH),BXRIG_FORGEBOX_API(defaulthttps://forgebox.io/api/v1). - The
bxrigprofile: in~/.bxagents/Agent.yml, a marked block (# >>> BxRig local AI ...,# <<< BxRig local AI <<<) withprofiles.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 withprofile: bxrig. A file with aprofiles:of its own is not rewritten (the lines to add are given).ai models userewrites the block when it is there; it is never added unasked. Checked for real:profile:,providers.openai-compatible.optionsand a top-leveloptionsall reach the local server, frominvokeand 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),oweb page,sstart or stop,ddefault,ljournalctl --user -u UNIT,iinstall or update. Bar: the Agents panel's BoxLang tab (boxlang.luau). - Java's home is not
$HOME: bx-agents readsuser.home, which comes from the account, so a test that changesHOMEsetsBXAGENTS_USER_CONFIGtoo. - 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/invokeanswering through thebxrigprofile. Not yet on a real desktop: the interactivechathand-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.
| Command | Does |
|---|---|
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.bxcallswithCheckpointer( aiMemory( memory: "cache" ) )beforewithMiddleware( 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,/pendingnames it,/resume approveruns it,rejectdoes not. - The tools: 36
@AIToolfunctions intools/BxRig.bx, eachbxrig ARGS --jsonthroughsystemExecute,BXRIG_SELFelsebxrig; the model gets the envelope'sdataas JSON (cut at 6000 characters) or what failed. The 19 that change something are inNEEDS_OKand pass--yeswhere the command asks for it (the approval was the plan). Argument descriptions come from the doc comment (@arg text); no argument is calledname. - Model: the
bxrigprofile (configure()returns{ profile: "bxrig" }), which now setsoptions.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 fornight_light_set {state: on}andreminder_add {stretch, 30m}, and once proposed an unaskedbrightness_set(held by the approval); Qwen3.5 4B listed the 24 themes fromtheme_listand asked fornight_light_set {state: on}. - Shortcuts:
agent-chatSuper+Period(ai agents chat --window),agent-webSuper+Shift+Period(ai agents open), both styles, Hyprland. - Setup: the wizard's AI page asks
boxy(nowby default,later); init then runsai agents install --yesandai agents setup --yes, both optional, afterai-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.bxsandtests/ai-agents-test.sh(the template copied as is; chat stopped and running;--window; ask, approve, reject and--sessionagainst 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 realbxrigoutput, changing ones waiting;ask,approveandrejectagainst 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.
| Command | Does |
|---|---|
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 tools | the 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 withtype: stdio, Kiro withdisabled: false, Copilot withtype: localandtools: ["*"]),"amp.mcpServers"(Amp),mcp.bxrig { type: local, command: [ ... ], enabled }(OpenCode, the V1 shape V2 reads),context_servers(Zed),serverswithtype: stdio(VS Code), a marked[mcp_servers.bxrig]table (Grok Build), a markedmcp add bxrig --command ... --args ...line (Crush's crushrc), a marked entry underextensions:(Goose's YAML; an inlineextensions: {}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 serverblock after the line with the first{, andunlinkgives 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 asFILE.bxrig-backup. - Until bx-ai's stdio fix ships (bugs found here: log lines on standard output, an error answer to
notifications/initialized,@mcpToolscans without parameters; a separate session fixes them in bx-ai),servepipes the server throughgrep "^{"and drops theMethod 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, answerstheme_listfrom the realbxrig theme list --json, and refusestheme_setread-only (Tool not found). - Tests:
tests/mcp_test.bxs(the tools andNEEDS_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,servewithout 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.
| Command | Does |
|---|---|
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/Llocal-only on/off,t/Ttelemetry 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).
| Command | Does |
|---|---|
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 / stop | waydroid 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 apps | waydroid 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=yor=m),binderin/proc/filesystems(binderfs), or an installedbinder_linuxmodule. When it is missing BxRig namesbinder_linux-dkms(AUR) and does not install a kernel module itself. - Test hooks:
BXRIG_WAYDROID_DIR(default/var/lib/waydroid, wherewaydroid.cfgsays which image) andBXRIG_PROC_FILESYSTEMS. - Control Center: the Android page (
bxrig tui android, before Logs): off (a note andSfor the setup plan), or the state row and one row per app (Enteropen,sstart or stop,rregister). Catalog:waydroidis an optional app on Arch only (extra); Debian and Ubuntu get it through the repositorysetupadds. Wizard and init: theandroidquestion (noby default) and, onyes, one optional stepbxrig 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) andtests/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.
| Command | Does |
|---|---|
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\|toggle | hold 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 TEXT | speaks 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 (christmasDec 20 to 26,halloweenOct 24 to 31,newyearDec 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+Slashin 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 inkeys 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,vspeech,eimages), the Boxy tab of the bar's Agents panel (the picture for what it is doing and a Talk button), and the sprite inbxrig 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,framesinboxyandboxy 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) andtests/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.