Personal Omarchy configuration with repeatable capture, Git updates, and restore
with backups. Live configuration stays in its usual location under ~/.config.
home/ is a portable snapshot; editing it alone does not change the desktop.
From this repository:
./bin/dotfiles update "Swap left Alt and Super" --pushThis captures the files in manifest.json, checks for excluded files and common
credential patterns, commits changed configuration, and pushes to the configured
remote. Omit --push to commit locally. No watcher or background publishing runs.
Run this after changing your settings. The tool refuses to mix in already-staged
changes. A failed push leaves the local commit intact; retry with git push.
For review before committing:
./bin/dotfiles capture
./bin/dotfiles check
git diff -- home
git status --short
git add home
git commit -m "Describe the change"
git pushCapture includes Git-ignored Neovim personal files and tracks deleted files inside
listed directories. If an entire listed source is missing, it fails before replacing
the snapshot. Remove that entry from the manifest deliberately if it is no longer
needed. Add new config paths explicitly to manifest.json, capture and review them,
then commit the manifest along with the snapshot. The update command only stages
home/; changes to scripts/docs/manifest need an ordinary Git commit.
AGENTS.md explains this workflow for agents working in this repository. Agents
working elsewhere won't automatically see it; tell them to capture changes here.
| Group | Files and purpose |
|---|---|
hypr |
Hyprland Lua loader and user overrides, night light and portal config. Caps Lock is Ctrl; left Alt and Super are swapped. Monitor scaling is optional on restore. |
herdr |
Only config.toml: Ctrl+A prefix, pane navigation/splits, tab/workspace bindings, theme and window title. |
nvim |
Complete Neovim config, plugin/tool lockfiles, personal Herdr test integration, clipboard and language settings, tests, patched Endwise source and licenses. |
terminals |
Foot, Alacritty, Ghostty and Kitty user configs. Theme references continue to use Omarchy's generated theme files. |
tmux |
Existing tmux config for sessions that still use tmux. |
omarchy |
Shell/bar/idle JSON, menu extensions, default agent name. |
shell |
Bash config and environment.d editor defaults. |
Some files still match Omarchy defaults; tracking them also captures future personal
edits. The packaged defaults in /usr/share/omarchy are not copied. Hyprland's loader
continues loading those defaults before personal overrides. Installed packages,
credentials, application data, generated themes, session state, logs, backup files,
and Git metadata are not included. This is an Omarchy configuration backup, not a
complete operating-system backup or a configuration for macOS.
Git identity is not copied. On another machine, set your own identity and run
git config --global core.editor nvim to restore the editor preference. Bash editor
exports and environment.d settings are included. Optional terminal selection,
theme/font selection, and desktop file associations should be set through Omarchy
on the destination. Display scale defaults to that machine unless explicitly restored.
Requirements: Git, Python 3.11+, a compatible Omarchy installation, Herdr, and Neovim.
Initial capture was on Omarchy 4.0.2-1, Herdr 0.8.2, Neovim 0.12.5.
These Hyprland configs use Lua; they are not suitable for older .conf installations.
Clone this repository, enter it, and preview:
./bin/dotfiles check
./bin/dotfiles restoreClose Neovim before restoring it. Apply all portable configs, or just one group:
./bin/dotfiles restore --apply
# Alternatively:
./bin/dotfiles restore --group nvim --applyExisting files and whole managed directories are moved to
~/.local/state/omarchy-dotfiles/backups/<UTC timestamp>/ before replacement.
An existing ~/.config/nvim symlink is backed up as a link; its original checkout
is left intact, and a standalone config directory is installed in its place.
Restoring a directory replaces that whole managed directory. Backups retain any
extra files that were there. The script refuses linked parent directories.
To include this machine's 1.25 monitor scale and GDK_SCALE=1:
./bin/dotfiles restore --group hypr --include-machine --applyAfter applying Hyprland configs, validate them:
hyprctl reload
hyprctl configerrorsResolve any errors before continuing. Restart affected applications; Herdr's reload
binding is Ctrl+A then Q. New shells load the Bash changes; a new login picks up
the user-service editor environment. Neovim's plugin manager installs plugins on
first launch; :Lazy restore uses the captured plugin lockfile, and :Mason manages
language tools. Runtime dependencies still need installation; see
docs/TERMINAL-SETUP.md for setup history and checks.
Rollback: close affected apps, move the newly installed file/directory aside, and move its saved counterpart from the printed backup directory to its original path. For Neovim this can restore the original symlink. Reload/restart the affected app.
The starting Neovim configuration is
braintreeps/neovim-dotfiles,
commit 6cf921799aac2ac164dd064f4f96c0141ff35135. Personal changes live under
home/.config/nvim/lua/personal/. The upstream .gitignore is omitted because it
ignores these personal files. The original license is preserved in the snapshot.
The captured lockfile reflects the locally installed configuration.
\rfruns the nearest test,\rbruns the file, and\rlrepeats the last test.lua/personal/plugins/testing.luainstalls the strategy implemented inlua/personal/herdr_test.lua.- In Herdr, it selects an available shell pane in the current tab or creates one, preserves editor focus, and supports recognizable idle Docker shell panes.
- Outside Herdr, tests use Neovim's terminal.
\ri,\rx, and\vsretain upstream tmux/Vimux behavior. There is no custom\rcmapping. - The local Endwise copy is based on
RRethy/nvim-treesitter-endwise, commit8fe8a95630f4f2c72a87ba1927af649e0bfaa244, with local search-position and pattern fixes. Preserve its source and license; it does not auto-update.
On the original machine, ~/.config/nvim links to ~/Projects/neovim-dotfiles.
Capture follows that root link and includes the ignored personal files, without
copying the checkout's Git metadata. On restored machines the config is standalone;
upstream Git-based update commands may not work. Merge upstream changes deliberately,
preserving lua/personal/, and capture the result here.
The allowlist keeps Herdr logs/session state and account configuration out of Git. The built-in credential scan is a heuristic, not a guarantee; inspect changes before publishing, especially if adding shell exports or new paths. Do not put secrets in tracked configs. Nested symlinks require explicit handling instead of silently copying their targets.
python3 -m unittest discover -s tests -v
./bin/dotfiles checkIntegration regression checks on an installed Neovim setup:
nvim --headless -u NONE -l ~/.config/nvim/lua/personal/tests/herdr_test.lua
nvim --headless -u NONE -l ~/.config/nvim/lua/personal/tests/endwise.luaCopied Neovim and vendored plugin files retain their respective licenses. Omarchy
configuration templates originate from omacom/omarchy.