Skip to content

Let an intro start on its first frame - #9

Merged
bjarneo merged 5 commits into
omacom:mainfrom
yamz8:intro-no-fade-in
Oct 4, 2026
Merged

bjarneo merged 5 commits into
omacom:mainfrom
yamz8:intro-no-fade-in

Conversation

@yamz8

@yamz8 yamz8 commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

What

owe intro --start first-frame <video> starts a one-shot intro on its own first frame instead of from the current still. Over IPC it is {"cmd":"intro","path":"…","start":"first-frame"}.

--start still is the default and behaves exactly as owe intro does in 0.2.8: the intro fades in from the still on screen. Any other value is rejected, by the CLI with its usage and by the daemon with an error. The end is unchanged either way: the intro fades into the still, and the renderer holds it while the shell recreates its background.

Why

At login there is no still on screen yet. With the fade-in from #6, the still has to be drawn first, so a login shows still → intro → still, while the intro is meant to lead into the still. With --start first-frame, Omarchy leaves the background empty at login, and the intro is the first thing drawn there.

0.2.8 is now in Omarchy's package repo, so this is what every login intro looks like today.

How

  • Load: the daemon loads the intro without a from still. Since Smooth one-shot intro handoffs #6 a new renderer surface stays unmapped until it has content, so nothing is drawn before the intro's first frame.
  • Handoff: while preparing, the daemon waits for the renderer's ready (first frame drawn) instead of has_transition, then releases the shell's layer. It sends no intro-show. The 3-second preparing timeout still applies.
  • A renderer that has already drawn (its status reports swaps > 0) would clear its still to black before the intro's first frame. The intro starts from that still instead, as it would with --start still.
  • A renderer left running by a failed startup handoff: when owed starts before the shell, the handoff fails and blocks renderer starts for 30 seconds. A renderer that is already running now plays the intro without waiting out that delay. Before this, a login intro in that window was refused.
  • Shell timeout: omarchy-shell gives the shell 2 seconds to answer by default, while owed waits 5 seconds for the call. A shell that was still starting took about 2.5 seconds to disable its background plugin, so the intro ended right after it began. owed now lets omarchy-shell wait 4 seconds, unless the session sets OMARCHY_SHELL_IPC_TIMEOUT itself. This is a separate commit.
  • A refresh during an intro: Omarchy's theme-set hook sends refresh, which rereads the background even when its path is unchanged, since a theme switch can put a new file at the same path. Any refresh ended a playing intro. The daemon now records the still file an intro starts from. A refresh or background change that still names that very file leaves the intro playing, while a new file at the same path still ends it. This is a third commit.
  • Naming: how an intro starts is a choice between two behaviours, so it takes a named value, as battery_mode does, written --option VALUE like --socket PATH. An earlier revision of this PR used --no-fade-in; that read as a negative flag and still faded in from a renderer already on screen. Internally the daemon's flag is from_still.

Result

Real Omarchy login, Catppuccin's Totoro intro, recorded at 60 fps from Hyprland's start and measured per frame. Counted from the shell's launch:

0.2.8 owe intro owe intro --start first-frame
What shows first The finished still, about 0.4 s, then a fade into the intro The intro's own first frame
Intro on screen — about 1.45 s
Before the intro lands still → intro no frame within 4.8 levels of the still before the intro's own ending
Landing on the still — largest frame-to-frame change 1.8 of 255 levels

Owed and the shell were also restarted together in both orders, four runs: the intro started on its first frame and finished every time, with no warnings. A background without an intro, animations off, and an older owe that rejects --start all show the still at the normal time without an intro. Tested on an Intel UHD laptop at 1366×768.

Checks

  • All 16 Meson suites pass on a fresh release build, with no compiler warnings.
  • New assertions in lock-policy:
    • The load has no from, the daemon waits for ready, sends no intro-show, and still fades into the still at EOF.
    • A renderer that has drawn makes the intro start from the still.
    • A running renderer that has not drawn starts on the first frame, even inside the startup retry delay.
    • A change notice for the intro's own still file keeps the intro, and a new file at the same path ends it.
  • New assertions in daemon:
    • With --start first-frame, the intro loads without a from still, gets no intro-show, plays to EOF and fades into the still.
    • The CLI prints its usage for an intro without a video, --start without a value, an unknown value, a missing video after the value, and --start after the video. owe intro with no arguments used to crash.
    • The daemon rejects an unknown start value.
    • omarchy-shell is called with the longer timeout.
    • A refresh sent while an intro plays leaves it playing to its end.
  • Each new assertion fails without its change.

Notes

  • After a failed startup handoff, owed still waits out its 30-second shell retry before handing the still back, and the renderer shows the identical still meanwhile. Clearing that retry once the intro's shell call succeeds would be a small follow-up.
  • On this laptop, transition fails on battery power: it needs at least 3 blended samples and gets 2. That happens on untouched 0.2.8 as well, and the suite passes on AC power.

🤖 Generated with Claude Code

https://claude.ai/code/session_017r6Ai9EQ5fRa394dCcicSo

yamz8 and others added 2 commits October 3, 2026 01:41
`owe intro --no-fade-in <video>` (IPC `"fade_in":false`) loads the intro
without a transition source. The new renderer surface stays unmapped
until the intro's first frame, and the daemon releases the shell's layer
once the renderer reports that frame drawn. The intro still fades into
the still at EOF.

This is for a shell that has no still on screen yet, as at login: a fade
from the still would show the still first and then the intro. A renderer
that has already drawn, such as one that kept the still when the shell
could not take it back, fades the intro in from its still instead of
clearing it to black. A renderer left running by a shell handoff that
failed at startup plays the intro rather than waiting out the handoff's
retry delay. Without the flag, `owe intro` behaves as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
omarchy-shell gives the shell 2 seconds to answer by default, while the
daemon waits 5 seconds for the call. A shell that is still starting, as
at login, took about 2.6 seconds to disable its background plugin, so the
handoff failed and a login intro ended right after it began. The call now
lets omarchy-shell wait 4 seconds unless the session sets its own timeout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
yamz8 and others added 3 commits October 3, 2026 02:33
Omarchy's theme-set hook sends `refresh`, which rereads the background
even when its path is unchanged, since a theme switch can put a new file
at the same path. Any refresh ended a playing intro, so Omarchy had to
start a theme's intro only after its hooks. The daemon now records the
still file an intro starts from, and a refresh or background change that
still names that very file leaves the intro playing. A new file at the
same path still ends it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`owe intro` with no arguments read past the end of argv and crashed, and
`owe intro --no-fade-in` took the flag for the video's path. Both now print
the usage, as `owe intro` did before the flag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017r6Ai9EQ5fRa394dCcicSo
An intro chooses between two ways to begin, so it takes a named value, as
battery_mode does, instead of a negative flag that still fades in when a
renderer already shows the still. `owe intro --start first-frame <video>`
and `{"cmd":"intro","start":"first-frame"}` start on the intro's own first
frame; `still`, the default, starts from the current still. The CLI prints
its usage and the daemon replies with an error for any other value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017r6Ai9EQ5fRa394dCcicSo
@yamz8

yamz8 commented Oct 4, 2026

Copy link
Copy Markdown
Contributor Author

Two updates since this was opened:

  • --no-fade-in is now --start still|first-frame. How an intro starts is a choice between two behaviours, so it follows battery_mode and --socket PATH instead of being OWE's first negative flag, one that still faded in when a renderer already showed the still. --start still is the default, so plain owe intro is unchanged. Unknown values are rejected by both the CLI and the daemon.
  • owe intro with no arguments crashed with the earlier parsing, and owe intro --no-fade-in took the flag for the video's path. Both now print the usage, with tests.

@bjarneo, could you take a look when you have a moment? 0.2.8 is now in Omarchy's package repo, and with it a login intro shows the finished still before the video. Omarchy's login intro will call owe intro --start first-frame once this is released.

@yamz8

yamz8 commented Oct 4, 2026

Copy link
Copy Markdown
Contributor Author

The CI failure on 5e1ed6b is transition's "both outputs show intermediate colors": the timing-sensitive count of blended samples under software GL, the same failure #6's run 36605846049 had. These commits don't touch the renderer or that test, and the suite passes locally on them. @bjarneo, a re-run when you review should clear it; I don't have rights to trigger one.

@bjarneo
bjarneo merged commit 5ff10b9 into omacom:main Oct 4, 2026
1 of 2 checks passed
@bjarneo bjarneo mentioned this pull request Oct 4, 2026
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