Skip to content

Run under non-Hyprland compositors and fit narrow screens - #121

Merged
cpow merged 3 commits into
typecraft-dev:mainfrom
tcballard:non-hyprland-small-screens
Nov 30, 2026
Merged

cpow merged 3 commits into
typecraft-dev:mainfrom
tcballard:non-hyprland-small-screens

Conversation

@tcballard

@tcballard tcballard commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

omacast waited for a Hyprland monitor before showing its card. Under labwc, sway and other wlroots compositors, the launcher mapped but never appeared.

  • When HYPRLAND_INSTANCE_SIGNATURE is unset, the Hyprland-only steps are skipped: the focused monitor, the monitor/scale gate, refreshMonitors and the omacast submap dispatches. Under Hyprland nothing changes.
  • On screens narrower than 500 px the card sits just under the bar (the bar's height comes from Style.bar.sizeHorizontal), so the search field stays above an on-screen keyboard.
  • When the clipboard watcher exits 127 (wl-paste not installed), it retries once a minute instead of every 2 s.

tests/content-ready.test.js covers the non-Hyprland case, and node --test tests/*.test.js passes. Tested on an iPhone 6 (375×667 logical, portrait) under labwc with Omarchy's shell: the launcher opens under the bar and searches.

🤖 Generated with Claude Code

Confidence Score: 5/5 · The PR appears safe to merge; no actionable issues were found.RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no actionable issues were found.

Summary

The launcher can reveal its card without a Hyprland monitor and moves the card near the top on narrow screens.

  • The launcher can appear without Hyprland monitor details.
  • The launcher card sits below the bar on narrow screens.
  • A missing clipboard tool triggers a slower watcher retry.

No actionable issues were found. Tests and desktop rendering were not run during this review.

Reviews (1) · Last reviewed commit: "Keep the card at the top on narrow scree..." · Reviewed by Greptile

tcballard and others added 3 commits November 30, 2026 14:56
Without wl-clipboard the watcher exits 127 straight away, and the
2 s restart turned that into a new process every two seconds for as
long as the shell ran. Exit 127 now waits a minute before trying again;
any other exit still restarts after 2 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
contentReady waited for a Hyprland monitor matching the output and for
its scale, so under labwc, sway or any other wlroots compositor the
launcher mapped but never showed its card. When HYPRLAND_INSTANCE_SIGNATURE
is unset, skip the focused-monitor lookup, the monitor and scale checks,
refreshMonitors and the omacast submap; the surface having the output's
size is enough. Under Hyprland nothing changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a screen under 500 px wide (a phone, or a small portrait display) the
card sits just under the bar instead of a quarter of the way down, so
the search field and the first results stay above an on-screen keyboard.
Its full height is measured from there, leaving one gap at the bottom.
Wider screens keep today's placement.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cpow
cpow merged commit e03eeab into typecraft-dev:main Nov 30, 2026
2 checks passed
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