Repository navigation
Let an intro start on its first frame - #9
Merged
Merged
Conversation
`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>
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
Contributor
Author
|
Two updates since this was opened:
@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 |
Contributor
Author
|
The CI failure on |
Merged
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.
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 stillis the default and behaves exactly asowe introdoes 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
fromstill. 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.ready(first frame drawn) instead ofhas_transition, then releases the shell's layer. It sends nointro-show. The 3-second preparing timeout still applies.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.omarchy-shellgives 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 letsomarchy-shellwait 4 seconds, unless the session setsOMARCHY_SHELL_IPC_TIMEOUTitself. This is a separate commit.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.battery_modedoes, written--option VALUElike--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 isfrom_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:
owe introowe intro --start first-frameOwed 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
owethat rejects--startall show the still at the normal time without an intro. Tested on an Intel UHD laptop at 1366×768.Checks
lock-policy:from, the daemon waits forready, sends nointro-show, and still fades into the still at EOF.daemon:--start first-frame, the intro loads without afromstill, gets nointro-show, plays to EOF and fades into the still.--startwithout a value, an unknown value, a missing video after the value, and--startafter the video.owe introwith no arguments used to crash.startvalue.omarchy-shellis called with the longer timeout.refreshsent while an intro plays leaves it playing to its end.Notes
transitionfails 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