Repository navigation
Hand the Apple desktop leaves to omarchy-mac's setup - #631
Merged
Merged
Conversation
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
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.
3 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket 103 step 4.3 (switch consumers). Stacked on #630 (4.1); retarget to
quattro-upstreamonce it merges.setup-system/setup-user,install/hardware/platform-setup.shandinstall/user/platform-setup.shas 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.shandomarchy-install-browsernow reach omarchy-mac's setup through the dispatcher. User operations also getXDG_CONFIG_HOME/XDG_STATE_HOME.omarchy-setup-mac. share-picker is dropped on purpose (current Chromium enables the PipeWire capturer itself).apple/{audio,video-decode,electron-gl}.shstay only as forwarders for image hardware queues that name them.omarchy-hw-applemoves into omarchy-mac (same/usr/binpath plus the/usr/share/omarchy/binlink; ownership moves in the one-transaction upgrade the package README requires; root never uses PATH).default/pacman/apple-siliconcopies 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/platformin 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, theomarchy_workspace_gesture = falseopt-out and the step-aside for a user's own gesture are unchanged; the runtime alone adds no gesture (tested). Shell tests pinOMARCHY_PACKAGED_PATHso 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.shrewritten 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.