Skip to content

Add wallpaper browser for the dharmx/walls collection#6184

Open
samuhlo wants to merge 2 commits into
basecamp:devfrom
samuhlo:feat/wallpaper-browser
Open

Add wallpaper browser for the dharmx/walls collection#6184
samuhlo wants to merge 2 commits into
basecamp:devfrom
samuhlo:feat/wallpaper-browser

Conversation

@samuhlo

@samuhlo samuhlo commented Jul 6, 2026

Copy link
Copy Markdown

Style > Background gains a 󰍉 Browse walls collection entry: a floating
browser 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:

categories

Fuzzy-search with live image previews:

browser

Set it now, or add it to a theme:

actions

How it works

  • Two files: bin/omarchy-walls (self-contained bash, shows up in
    omarchy commands) and one entry in the background selector's Lua.
  • Featherweight: one GitHub API call indexes the collection, previews are
    ~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.
  • Theme-native: colors come from the active theme's colors.toml and the
    session'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 kitty instead 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.

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.
Copilot AI review requested due to automatic review settings July 6, 2026 17:46
samuhlo added a commit to samuhlo/omarchy-walls that referenced this pull request Jul 6, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread default/elephant/omarchy_background_selector.lua
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 6, 2026 20:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

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
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.

2 participants