Skip to content

Omarchy 4.5: video backgrounds, theme intros, and the screensaver hint (#35) - #67

Merged
dividendsolo merged 7 commits into
mainfrom
agent/35
Nov 11, 2026
Merged

dividendsolo merged 7 commits into
mainfrom
agent/35

Conversation

@dividendsolo

Copy link
Copy Markdown
Owner

Closes #35.

Plan

  • bin/omarchy-screensaver: stty -echo once at startup, so the exit key does not flash in the corner (upstream Stop echoing the screensaver's exit key into the corner omacom/omarchy#16596).
  • bin/omarchy-video-wallpaper.swift (new, compiled by install.sh like the light/dark listener): AVPlayer in a borderless desktop-level window per screen, muted. Loops a video background; --once plays an intro one time and exits.
  • bin/omarchy-bg-set (new): sets an image or a video as the background. A video gets a still frame (qlmanage thumbnail) as the macOS desktop picture, which the lock screen shows, and the looping player on top. An image stops the player. An image with a matching theme intro (~/Pictures/Wallpapers/intros/<theme>_<stem>.mp4) plays the intro once, unless intros are off or macOS Reduce Motion is on. --login <id> restarts a video background and plays the current intro once per Hammerspoon process (a config reload keeps the pid, so it does not replay).
  • bin/omarchy-cycle-wallpaper and bin/theme (apply_wallpaper): accept mp4/mov/m4v and set through omarchy-bg-set. theme --sync also fetches each theme's backgrounds/intros/ into ~/Pictures/Wallpapers/intros/.
  • bin/omarchy-toggle-intros (new): the background-intros-off flag, the same file upstream uses.
  • hammerspoon/init.lua: Appearance > Animations is a submenu (Theme Intros toggle, Reduce Motion), and a login call to omarchy-bg-set --login.
  • install.sh/uninstall.sh, README (Wallpapers section, by-hand steps, parity rows), CHANGELOG.

Progress

Done: every item above, with tests.

  • tests/screensaver-test.sh (new): runs the screensaver in a pty and reads the ECHO flag before any read. Failed before the fix (expected 'off', got 'on'), passes after.
  • tests/bg-set-test.sh (new): video background (still frame set as the picture, player loops and stays up), image after video (player stops), intro plays once, Theme Intros toggle and Reduce Motion skip it, login plays it once per id and restarts a video background.
  • tests/cycle-wallpaper-test.sh: a video in the folder becomes the background (failed before the cycler change).
  • tests/theme-test.sh: theme --sync fetches the theme intro and does not treat it as a wallpaper (failed before).
  • tests/menu-test.sh: Appearance > Animations lists Theme Intros and Reduce Motion (failed before).
  • Continue run: the merge of origin/main (Omarchy 4.5 menu fixes: dim installed items, install a missing default agent, safe reload, toggling menus (#38) #63) had left conflict markers in CHANGELOG.md; both 2026-11-11 entries are kept now. After the merge, screensaver, bg-set, cycle-wallpaper, theme, menu, console and readme tests pass (menu and console with a LuaJIT built in scratch, since ezio has none). tests/default-agent-test.sh fails on ezio on origin/main too (17 checks, same output), so that failure is the host's, not this card's.
  • Continue run 2: the CI on the macOS runner hung in tests/screensaver-test.sh and hit the 10 minute limit (run 43105277316). The runner has no ttfx, so the screensaver loop could flood the undrained pty, and the test waited on the child with no limit. The test now puts a stand-in ttfx on the PATH, drains the pty, and kills the process group with SIGKILL if SIGTERM does not end it in 2 s. It still fails without the stty -echo fix (expected 'off', got 'on') and passes with it, in about 1 s on ezio. Not run on macOS here (no Mac runner reachable without a push).
  • The previous gate failure was the host's: origin/main failed the same CI dispatch.

Left / not checked:

  • bin/omarchy-video-wallpaper.swift is not compiled here: ezio is Linux (no swiftc, no AppKit). It first compiles on the owner's install.sh rerun. If swiftc fails, install.sh warns and the rest of the install goes on; omarchy-bg-set says the player is not built.
  • The pinned Omarchy commit (OMARCHY_COMMIT, 4.0.6) has no backgrounds/intros/, so theme --sync fetches intros only after the pin moves (or with OMARCHY_REF=<4.5 commit> theme --sync). The pin bump belongs with Omarchy 4.5: theme pipeline catches up #36 (theme pipeline).

Owner QA (after the merge, on the Mac)

  1. git pull in the clone, then rerun ./install.sh (it builds omarchy-video-wallpaper), then reload Hammerspoon.
  2. Video loops: put an .mp4 in ~/Pictures/Wallpapers and run omarchy-bg-set ~/Pictures/Wallpapers/<file>.mp4 (or cycle to it with ⌘⌃P). The video plays behind the windows, muted, and loops.
  3. Lock screen still: lock with ⌘⌃L. The lock screen shows a still frame of that video.
  4. Intros off: OMARCHY_REF=main theme --sync, then theme catppuccin plays the intro once. Appearance > Animations > Theme Intros says Disabled; switch away and back: no intro.
  5. Screensaver: trigger the screensaver (System > Screensaver), press a key: no letter shows in the bottom-left corner.

Aftermath sweep

Aftermath: secrets scrub clean; copy N/A (no landing page in this repo); demos N/A; help text fixed (menu subtitles, README Wallpapers section); tour N/A; pricing N/A; promises N/A; privacy N/A; terms N/A; value: Omarchy 4.5 parity card; money N/A; share artifact N/A; indexable page N/A; AI answers N/A; conversation N/A; milestone N/A; blog post N/A (folded into the 4.5 parity post when #22 lands); changelog entry added (merge conflict markers removed); UTM N/A; Lighthouse N/A; worktrees: only this card's; MCP N/A.

Security audit (diff)

Security audit (diff): 0 confirmed, 0 filed. Profile quick, scoped to git diff $(git merge-base origin/main HEAD)..HEAD; hunters run in this session, no sub-agents. Checked: upstream intro file names pass valid_name before they reach a path (#50); every path reaches osascript, qlmanage and the player as argv, never as script text; the pid file kill checks the process is the player first; the Hammerspoon login call passes only its own pid. The continue runs changed only CHANGELOG.md text and tests/screensaver-test.sh.

Page roast

N/A: no landing page in this repo.

Verify gate: passed @ e3d0355

The Foreman on ezio ran the repo's checks itself on the branch head. The unit tests ran in the repo's CI on Jog (agent-stack#296).

The repo has no checks to run (no package.json scripts, no bin/ci).

CHANGELOG: drop the conflict markers the branch had committed; keep every
2026-11-11 entry. bin/theme: the theme's remembered wallpaper (#36) goes
through omarchy-bg-set (#35); a video background is remembered by its video
path, not its still frame. tests/theme-test.sh: keep both sides' checks.
@dividendsolo

Copy link
Copy Markdown
Owner Author

Review: approve. The reviewer merged origin/main into the branch to fix the conflicts (6609677). Spec checklist: see omarchy4mac#35. ponytail-review: the logic is correct, paths go to osascript, qlmanage and the player as argv, the pid kill checks that the process is the player, and every Done-when line has a test. Looks good. Ship.

@dividendsolo

Copy link
Copy Markdown
Owner Author

Verify gate: passed @ 6609677

The Foreman on ezio ran the repo's checks itself on the branch head. The unit tests ran in the repo's CI on Jog (agent-stack#296).

The repo has no checks to run (no package.json scripts, no bin/ci).

@dividendsolo
dividendsolo merged commit 0cdf09d into main Nov 11, 2026
2 checks passed
@dividendsolo
dividendsolo deleted the agent/35 branch November 11, 2026 22:01
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.

Omarchy 4.5: video backgrounds, theme intros, and the screensaver hint

1 participant