Add wallpaper browser for the dharmx/walls collection#6184
Open
samuhlo wants to merge 2 commits into
Open
Conversation
omarchy-walls streams the dharmx/walls collection (1,637 curated wallpapers, 51 categories) without cloning its 3.7 GB: a single GitHub Trees API call builds a weekly-cached index, thumbnails arrive through an image-resize proxy at ~12 KB each, and only installed wallpapers are downloaded at full size. The Style > Background selector gains a 'Browse walls collection' entry (previewed by a magnifier cover drawn in the theme accent) that opens a floating fzf browser: category picker with 2x2 mosaic previews, live image previews per wallpaper, and actions to set the background now or add it to any theme's rotation via the standard backgrounds folders. The UI inherits the active theme end to end: fzf colors come from colors.toml and gum picks up the session-wide styling. All dependencies are base packages except kitty, which provides the graphics protocol for inline previews; without it the entry notifies the user instead of failing silently.
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an in-UI wallpaper browser for the dharmx/walls GitHub collection by introducing a new omarchy-walls command and wiring it into the Style > Background selector.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Changes:
- Adds a new “Browse walls collection” entry to the background selector that launches the browser and shows a generated cover preview.
- Introduces
bin/omarchy-walls, a self-contained Bash tool to index, browse, preview, and install wallpapers on demand (with caching + thumbnails).
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| default/elephant/omarchy_background_selector.lua | Adds a new background entry that launches the wallpaper browser and displays its cover image preview. |
| bin/omarchy-walls | Implements the wallpaper indexer/browser/installer and cover generation logic. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Comment on lines
+75
to
+79
| local cover_gen = io.popen("omarchy-walls __ensure-cover 2>/dev/null") | ||
| if cover_gen then | ||
| cover_gen:read("*a") | ||
| cover_gen:close() | ||
| end |
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.
Style > Backgroundgains a Browse walls collection entry: a floatingbrowser for dharmx/walls — 1,637 curated
wallpapers in 51 categories — without cloning its 3.7 GB. Browse, preview,
and either set a wallpaper right away or add it to any theme's rotation.
Pick a category, previewed as a mosaic of random samples:
Fuzzy-search with live image previews:
Set it now, or add it to a theme:
How it works
bin/omarchy-walls(self-contained bash, shows up inomarchy commands) and one entry in the background selector's Lua.~12 KB thumbnails via a resize proxy, and only what you install downloads
at full size. A whole browsing session costs a few hundred KB.
colors.tomland thesession's gum styling; the entry's cover is drawn in the theme accent and
regenerates on theme change.
One dependency to discuss
Everything used is already a base package except kitty, which provides
the graphics protocol for inline previews. Without it, the entry sends a
notification pointing to
omarchy pkg add kittyinstead of failing silently.Happy to take this wherever you prefer — gating the entry, adding kitty, or
another direction.
Thanks
All the wallpapers belong to their artists and to the beautiful curation work
of @dharmx in
dharmx/walls — this tool just gives that
collection a comfortable home inside Omarchy, downloading on demand and
redistributing nothing.