Skip to content

Hand the Apple desktop leaves to omarchy-mac's setup - #631

Merged
maralcbr merged 4 commits into
quattro-upstreamfrom
mac/103-switch-apple-consumers
Sep 27, 2026
Merged

maralcbr merged 4 commits into
quattro-upstreamfrom
mac/103-switch-apple-consumers

Conversation

@maralcbr

@maralcbr maralcbr commented Sep 27, 2026 •

Copy link
Copy Markdown
Member

Ticket 103 step 4.3 (switch consumers). Stacked on #630 (4.1); retarget to quattro-upstream once it merges.

  • Ports the platform setup seam being built for upstream (dispatch setup-system/setup-user, install/hardware/platform-setup.sh and install/user/platform-setup.sh as the last leaves, a first-run step), so shared files carry no Apple branch: hardware/all.sh, user/all.sh, network.sh, enable-user-units.sh and omarchy-install-browser now reach omarchy-mac's setup through the dispatcher. User operations also get XDG_CONFIG_HOME/XDG_STATE_HOME.
  • Removes the runtime's Apple desktop leaves (touchpad, mic, user electron-gl, browser flags, share-picker, enable-notch, fix-wifi-resume) and omarchy-setup-mac. share-picker is dropped on purpose (current Chromium enables the PipeWire capturer itself). apple/{audio,video-decode,electron-gl}.sh stay only as forwarders for image hardware queues that name them.
  • Quattro-only migrations that used the leaves now call the seam (sudo only when something resolves); 1789780917 still installs omarchy-mac when missing; the video/audio repairs ask for the reboot their stacks need.
  • omarchy-hw-apple moves into omarchy-mac (same /usr/bin path plus the /usr/share/omarchy/bin link; ownership moves in the one-transaction upgrade the package README requires; root never uses PATH).
  • Pacman staging reads omarchy-mac's Apple templates. The runtime's default/pacman/apple-silicon copies stay until installer PR Read the Apple pacman template from omarchy-mac omarchy-mac-installer#25 (reads omarchy-mac's first) is merged: an older builder would silently fall back to the aarch64 template without [asahi-alarm].

Also moves #629's three-finger workspace swipe into omarchy-mac: the shared Hyprland config loads a platform package's defaults from default/hypr/platform in the packaged tree (/usr/share/omarchy, so a dev checkout keeps them) after the user's files, and the gesture registry records on every platform (reset each load, wrapped once). Load order, the omarchy_workspace_gesture = false opt-out and the step-aside for a user's own gesture are unchanged; the runtime alone adds no gesture (tested). Shell tests pin OMARCHY_PACKAGED_PATH so a Mac running them doesn't pick up its installed defaults. Debated (dev checkout path fixed) and reviewed (test isolation, registry reset fixed).

Kept, out of scope: the boot shims grub-console.sh/limine-boot.sh (omarchy-mac-boot's first boot names the latter; the seam has no boot-setup operation), fix-asahi-hid-race.sh, pacman.sh, obsidian.sh (step 5), upstream's Intel/T2 leaves.

Delivery: candidate sets must carry omarchy-mac from the same commit (entrypoints), and the recipe's new depends (separate omarchy-pkgs PR).

Tests: apple-settings-test.sh rewritten for the seam (each migration's scope, acquisition, reboot prompts, forwarders, wiring); leaf tests moved to the package suite (#630); electron, dispatch, network, pacman staging, alias and legacy-conversion tests updated. Full runtime suite in an Arch container: only environment failures (no omarchy-pkgs checkout; known flaky hermes/system-sleep). Package and boot suites pass.

Debated in two rounds (XDG loss, reboot predicate, test coverage fixed). Second review: no blockers; stale comments fixed.

maralcbr and others added 2 commits September 27, 2026 21:53
Two optional dispatch operations give a platform one place for the setup
it needs beyond Omarchy's, instead of inline platform branches in the
setup leaves. setup-system runs as root from the last hardware leaf, so
an image build queues it with the others and its first boot runs it, with
image-first-boot (offline-safe, asking for the one boot rebuild instead of
building). setup-user runs as the user being set up, refuses root, and
gets only the user's home and session variables: from the last user
leaf at finalization (skipped inside an image build, where the detector
would read the build host) and again from first run once the session is
up. On Apple Silicon both resolve in omarchy-mac's directory,
/usr/lib/omarchy/mac; x86, generic aarch64 and Qualcomm register none,
so both are no-ops there.

A failed finalization now keeps first run pending, like any failed
first-run step, instead of letting the other steps mark it complete.

Co-authored-by: Scott Jones <444693+scottjones@users.noreply.github.com>
Hardware and user setup, first run, browser installs and the historical
Apple migrations now reach omarchy-mac's setup through the dispatcher
instead of the runtime's Apple leaves, which go with omarchy-setup-mac. The
audio, video decode and Electron hardware leaves stay only as forwarders
for images whose hardware queue names them. The legacy omarchy-hw-apple
alias moves into omarchy-mac, pacman staging reads omarchy-mac's Apple
templates, and user setup keeps the user's XDG configuration and state
directories. The runtime's Apple templates stay until the image builder
reads omarchy-mac's.
@maralcbr
maralcbr changed the base branch from mac/103-mac-setup-leaves to quattro-upstream September 27, 2026 12:35
The shared Hyprland config now loads a platform package's own defaults from
default/hypr/platform after the user's files, and the gesture registry the
swipe reads records gestures on every platform. omarchy-mac ships the swipe
there, so the runtime carries no Mac gesture while its load order, the
omarchy_workspace_gesture = false opt-out and the step-aside for a user's
own gesture stay as they were.
@maralcbr
maralcbr merged commit e528093 into quattro-upstream Sep 27, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant