Skip to content

Let the launcher close before running Omarchy actions - #71

Open
celson wants to merge 1 commit into
typecraft-dev:mainfrom
celson:fix/screenshot-launcher-borders
Open

celson wants to merge 1 commit into
typecraft-dev:mainfrom
celson:fix/screenshot-launcher-borders

Conversation

@celson

@celson celson commented Nov 3, 2026

Copy link
Copy Markdown

Problem

Running Screenshot (or any Omarchy action) from omacast starts the command the moment Enter is pressed, while the launcher layer is still on screen (Hyprland's layer fade-out). `omarchy-capture-screenshot` freezes the screen and captures it, so the launcher's borders and half-faded rows end up in the screenshot.

Fix

`Backend.runShell` now runs the command as `sleep 0.3; `, giving the layer time to unmap. Summon actions (`omarchy-shell shell summon …`) are unchanged.

Testing

  • Reproduced on Omarchy 4 / Hyprland 0.56 (default `layersOut` animation): Super+Space → "scre" → Screenshot captured the launcher.
  • With the change the launcher no longer appears in the capture.
  • Confirmed the running shell spawns `bash -lc "sleep 0.3; omarchy-capture-screenshot"`.
  • Note: Quickshell caches QML, so `omarchy-restart-shell` was needed to load the edit in an installed (non-dev) plugin.

The delay applies to every non-summon action, not just screenshots. A tighter alternative would be waiting for the `omacast` layer to disappear from `hyprctl layers` instead of a fixed delay; happy to switch if you prefer.

🤖 Generated with Claude Code

Actions started the instant Enter was pressed, while the launcher
layer was still on screen (fade-out). Screenshot actions froze and
captured the screen with the launcher's borders still visible.
Delay the command by 0.3s so the layer is gone first.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.

1 participant