Skip to content

Browse wallhaven and generate themes via aether from the theme switcher#5878

Open
bjarneo wants to merge 2 commits into
basecamp:devfrom
bjarneo:wallhaven-theme-picker
Open

Browse wallhaven and generate themes via aether from the theme switcher#5878
bjarneo wants to merge 2 commits into
basecamp:devfrom
bjarneo:wallhaven-theme-picker

Conversation

@bjarneo
Copy link
Copy Markdown
Contributor

@bjarneo bjarneo commented May 16, 2026

The "+" tile at the end of the carousel loads wallhaven's monthly toplist inline. Scrolling near the end auto-fetches the next batch. Picking an image downloads it and runs aether --generate to build and apply the theme.

omarchy_wp_extract_wallhaven_aether_small.mp4

The "+" tile at the end of the carousel loads wallhaven's monthly toplist
inline. Scrolling near the end auto-fetches the next batch. Picking an
image downloads it and runs aether --generate to build and apply the theme.
Copilot AI review requested due to automatic review settings May 16, 2026 14:17
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR extends the Quickshell image selector to support an “action” tile (a synthetic “+” entry) that can run a command to append more results (e.g., Wallhaven), and updates the theme switcher flow to handle selecting either local previews or remote URLs.

Changes:

  • Add an action tile/keybinding to the QML carousel, including auto-fetch near the end and support for appending rows over IPC.
  • Implement Wallhaven fetch + append via a new helper script, and update the theme switcher to download/apply URLs.
  • Extend omarchy-menu-images IPC payload to include action metadata.

Reviewed changes

Copilot reviewed 1 out of 4 changed files in this pull request and generated 4 comments.

File Description
default/quickshell/select-by-image.qml Adds action tile/key handling, append IPC op, URL support, palette rendering, and auto-fetch logic.
bin/omarchy-theme-switcher Uses action tile to fetch Wallhaven results; handles URL selections by downloading + applying via aether.
bin/omarchy-theme-from-wallhaven New script to fetch Wallhaven pages and append results to the running selector via socket IPC.
bin/omarchy-menu-images Adds CLI flags and IPC fields for action key/label/command to drive the new QML behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +340 to +346
function triggerAction() {
if (!hasAction || actionProc.running) return

autoLoadActive = true
actionProc.command = ["bash", "-lc", actionCommand]
actionProc.running = true
}
Comment thread default/quickshell/select-by-image.qml Outdated
} else if (root.hasActionKey && event.text && event.text.toLowerCase() === root.actionKey.toLowerCase() && (event.modifiers === Qt.NoModifier || event.modifiers === Qt.ShiftModifier)) {
// Action key takes precedence over filter typing so the bound key
// can't be "captured" by an active filter session. Pressing it
// closes the selector and runs actionCommand in the background.
Comment thread default/quickshell/select-by-image.qml Outdated
maybeAutoFetch()
}

function openSelector(nextImageDirs, nextImageRows, nextSelectedImage, nextSelectionFile, nextDoneFile, nextColorsFile, nextColorsRaw, nextShowLabels, nextFilterable, nextActionKey, nextActionLabel, nextActionCommand, nextNearbyWindow) {
Comment on lines +617 to +634
// High-quality overlay. Loads for the 3 cards on either side of
// the active one so the full wallpaper is already decoded by
// the time the user lands on it. Visibility is gated to the
// active card only - the preloaded neighbours sit in Qt's
// pixmap cache invisible until they're scrolled to.
//
// For local-file callers filePath == thumbnailPath so source
// stays empty and this overlay never activates.
Image {
id: imageFull
anchors.fill: parent
source: (item.nearby && Math.abs(item.relativeIndex) <= 3
&& item.filePath && item.filePath !== item.thumbnailPath)
? root.fileUrl(item.filePath) : ""
fillMode: Image.PreserveAspectCrop
asynchronous: true
cache: true
smooth: true
- Exec actionCommand directly instead of via bash -lc
- Take an options object for openSelector
- Fix stale comments on triggerAction and the imageFull overlay
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