Skip to content

Default Apps & Package Modules (Quattro)

Pimarchy ships a default app policy: a small set of pre-selected applications recorded in ~/.config/pimarchy/defaults/, plus lazy package modules so the base install stays lean.

Default Apps

Category Default Set with
Coding agent Raven pimarchy default agent raven
Editor Zed pimarchy default editor zed
Terminal Foot pimarchy default terminal foot
Browser Chromium pimarchy default browser chromium
File manager Pifile pimarchy default filemanager pifile
pimarchy defaults                      # show all five
pimarchy default browser chromium      # set one (validated against an allowlist)
pimarchy default agent                 # show one

The default files are plain key=value files in ~/.config/pimarchy/defaults/:

# ~/.config/pimarchy/defaults/agent
# Written by: pimarchy default agent <name>
# Read by:    pimarchy agent
agent=raven

Values are validated against a fixed allowlist before being written — and again when read — because launchers consume these files. An unknown value falls back to the shipped default instead of ever being executed.

After changing a default, re-run bash install.sh (or pimarchy update) so templates (e.g. Hyprland keybinds) pick up the new value.

The Agent Keybind (Quattro-style)

SUPER + SHIFT + CTRL + A launches the default coding agent in a dedicated Foot window (org.pimarchy.agent), matching Omarchy's omarchy agent setup. If the session starts in $HOME and ~/Work exists, the agent is started there so workspace trust sticks. a in a terminal is pimarchy agent --inline.

hl.bind("SUPER + SHIFT + CTRL + A", exec("pimarchy agent"), { description = "Coding Agent" })
hl.window_rule({ match = { class = "^org\\.pimarchy\\.agent$" }, float = true, size = { 900, 600 }, center = true })

Any extra arguments are passed as the agent prompt:

pimarchy agent "fix the failing test in lib/upgrade.sh"
pimarchy agent --inline                        # current terminal (alias: a)

Raven + Ollama install lazily via the ai module — run pimarchy install ai, or pimarchy default agent raven (which runs the same script: hooks when the repo checkout is present).

XDG MIME / default handlers

Setting pimarchy default browser|editor|filemanager (and the fresh-install defaults) also applies soft-fail xdg handlers when the matching .desktop exists:

  • file manager → inode/directory (pifile.desktop)
  • browser → xdg-settings default-web-browser + text/html / http(s)
  • editor → common text MIME types (dev.zed.Zed.desktop)

Bind templates still need install/update to refresh Hyprland Lua.

Package Modules

Packages are declared as data in config/packages/*.list with three tags:

  • apt:<pkg> — from the default (stable/Trixie) repositories
  • sid:<pkg> — from Debian sid (pinned; see the Sid policy)
  • script:<label> — installed by an official-script hook (Zed, Raven, Ollama, rustup, Node, Go...)

core.list — always installed

Tag Packages
apt foot, starship, fonts-font-awesome, fonts-jetbrains-mono, fonts-liberation, fonts-dejavu-core, fonts-noto-color-emoji, gnome-themes-extra, yaru-theme-icon, papirus-icon-theme, fontconfig, dconf-cli, gsettings-desktop-schemas, qt5ct, greetd, tuigreet, lxpolkit, pavucontrol, network-manager, bluez, bluez-tools, libspa-0.2-bluetooth, alsa-utils, pipewire, pipewire-pulse, wireplumber, xdg-desktop-portal, xdg-desktop-portal-gtk, xdg-utils, xdg-user-dirs, libnotify-bin, grim, slurp, wl-clipboard, btop, ufw, sshfs, jq, fd-find, ripgrep, unzip, wget, curl, ca-certificates, git, gh, libvulkan1, mesa-vulkan-drivers, chromium
sid rofi (Wayland build; Trixie rofi is X11-only), hyprland, hyprland-guiutils, waybar, mako-notifier, swaybg, xdg-desktop-portal-hyprland, uwsm
script zed, pifile, picalc

Not in core (deliberately): rpi-imager (lazy extras), LibreOffice, VS Code, OpenCode, Node, Go, Rust, Python dev tools, Docker, network-manager-gnome / nm-applet, blueman. Memory efficiency on a 4 GB Pi is the priority — no heavy GUI apps in the default path. nm-applet is also avoided because it keeps Xwayland resident; blueman conflicts with the sid Python pulled by Hyprland (see sid policy).

dev.list — pimarchy install dev

Tag Packages
script rustup (Rust, official rustup.rs — not apt), cargo-config (mold linker + shared target dir, see below), node (Node.js v22 LTS via NodeSource), go (latest stable from golang.org), python-dev (pip, venv, pipx)
apt ca-certificates, gnupg, docker-ce, docker-ce-cli, containerd.io, docker-buildx-plugin, docker-compose-plugin, build-essential, pkg-config, libssl-dev, git-lfs, shellcheck, mold, clang, libclang-dev, libfontconfig-dev, libwayland-dev, libzstd-dev, libvulkan-dev
sid libxkbcommon-dev, libxkbcommon-x11-dev, libxcb1-dev, libx11-xcb-dev

The four sid X11 headers match how core installs the Hyprland stack (-t sid): sid's runtimes (libxcb1, libxkbcommon0, …) land on the system then, and -dev packages pin their exact runtime version with = — Trixie or Raspberry-Pi-repo headers conflict with sid runtimes and break the whole dev-module transaction.

Rust builds are tuned for the Pi 5 via ~/.cargo/config.toml: mold links (the arm64 GNU ld is the slowest part of a Rust build) and a shared target dir at ~/.cache/cargo-target so dependencies compile once across all crates, not per-project. Re-run pimarchy install dev to refresh the file if it's still pristine; user edits are left untouched.

Docker CE comes from the official download.docker.com repository (pinned 1001), never Debian's docker.io — it lacks docker-compose-plugin. Docker group membership is opt-in:

pimarchy install dev --with-docker-group
# or manually: sudo usermod -aG docker $USER

ai.list — pimarchy install ai

Tag Packages
script raven, ollama

Lean-core path: Raven and Ollama stay out of firstboot. The default agent policy still records agent=raven; the binaries arrive when you install the module or run pimarchy default agent raven.

extras.list — pimarchy install extras

Tag Packages
apt rpi-imager

gh and sshfs stay in core (contributor CLI + user-required network mounts). rpi-imager is a full GUI and is opt-in.

office.list — pimarchy install office

Tag Packages
apt libreoffice-writer, libreoffice-calc, libreoffice-impress, libreoffice-gtk3, libreoffice-help-en-us

Firewall baseline (ufw)

On a fresh install, configure_firewall applies the baseline: ufw reset, default deny incoming / allow outgoing, ufw limit ssh, then enable.

If ufw is already active on a re-run, the entire baseline is skipped (not just the reset) so user-added rules survive. Set PIMARCHY_UFW_RESET=1 to force reset + re-apply baseline.

Safe Upgrade Policy

pimarchy update never clobbers your edits. For every shipped config file:

  1. Missing file → installed (this includes all new Quattro-only files).
  2. Hash matches the manifest (pristine, unchanged since Pimarchy wrote it) → refreshed from the new default.
  3. Hash differs (user-modified) → left untouched, and reported.
  4. No manifest entry (pre-Quattro file or user-created) → left untouched, and reported.

Hashes live in ~/.config/pimarchy/manifest. pimarchy update snapshots pristine hashes before git pull (with the old code checked out), so files unchanged since your last install are recognized as refreshable even if the manifest was missing entries.

Retired files (previously shipped, now removed from the set — e.g. ~/.config/chromium-flags.conf, OpenCode/VS Code leftovers, Alacritty paths) are renamed to <file>.pimarchy-upgrade.bak and then removed.

Alacritty users: Foot replaced Alacritty as the default terminal. pimarchy update retires ~/.config/alacritty.toml (and logs Retiring: …). If you still run Alacritty outside Pimarchy and keep a customized ~/.config/alacritty/ tree, copy it aside before updating — retirement removes Pimarchy-listed paths; Foot is the supported terminal going forward.

bash install.sh (and pimarchy install) intentionally always overwrite — that's the "re-apply my theme.conf" workflow — and record fresh hashes, so the next pimarchy update is gated against the new baseline. If you want install-time protection for a file, edit it after installing.

Prefer installing with your edits already made?

Install first, then edit. The manifest records what Pimarchy wrote; your subsequent edits are what the safe upgrade protects.

Migration for Pre-Quattro Users

If you installed Pimarchy before the Quattro overhaul:

  • Run pimarchy update (or re-run bash install.sh) to get the new structure.
  • Your packages are not removed. The old full set is preserved behind a flag: bash install.sh --legacy-packages reinstalls dev + office toolchains (Node, Go, Python, Docker, LibreOffice) if you want them.
  • Config files you never touched are refreshed; anything you edited is left alone and reported by pimarchy update.
  • Stale files from the VS Code / OpenCode era are retired automatically (backed up as *.pimarchy-upgrade.bak, then removed).
  • Alacritty config paths (~/.config/alacritty.toml, ~/.config/alacritty) are retired in favor of Foot — custom Alacritty users should back up before pimarchy update.
  • New keybinds live in ~/.config/hypr/bindings.lua (required by hyprland.lua). Hyprland 0.55+ uses Lua; the legacy .conf format is gone. If you customized an older hyprland.conf / bindings.conf, that file is user-modified and pimarchy update will leave it alone — migrate binds into the Lua files at your leisure.

Where Defaults Are Consumed

  • config/hypr/bindings.lua.template — {{DEFAULT_TERMINAL}}, {{DEFAULT_BROWSER}}, {{DEFAULT_EDITOR}}, {{DEFAULT_AGENT}}, {{DEFAULT_FILEMANAGER}}
  • bin/pimarchy-agent — reads ~/.config/pimarchy/defaults/agent directly (no templates involved)
  • pimarchy defaults / pimarchy default <what> [name] — show/set

Adding a new default category means: extend defaults_allowlist/defaults_default_for in lib/defaults.sh, add a template variable in install.sh (via defaults_export_vars), and register any new launcher in config/modules.conf.