omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Omasnap scroll capture is black: screenshot-selection.lua still sets no_screen_share on the omasnap layer

Open BareTread opened this issue 1 month ago • 0 comments

System details

AMD Ryzen 7 7840HS (Radeon 780M) + RTX 4060 Mobile, Omarchy 4.0.0.r7314 (dev), omasnap 1.23.0, Hyprland 0.56.2 (local build with an unrelated input patch)

What's wrong?

default/hypr/apps/screenshot-selection.lua still sets no_screen_share = true on the omasnap layer. Hyprland draws an excluded layer's full bounds black in output captures, transparent areas included. The scroll overlay covers the whole monitor, so every frame Omasnap grabs through its live region is solid black and scroll capture never stitches (it sees a single block).

Omasnap removed this property from its recommended Hyprland setup in omacom/omasnap@282b3381 (fixes omacom/omasnap#128), two days after it landed here in e265934b. Its README now says not to set it; ordinary captures are unaffected because they grab the screen before the overlay appears.

Repro:

  1. omasnap --scroll, select a region over a scrollable window, pick Auto ↓: nothing stitches.
  2. With the overlay open, grim /tmp/a.png gives a fully black image.
  3. Add hl.layer_rule({ match = { namespace = "^omasnap$" }, no_screen_share = false }) to the user config and hyprctl reload: grim shows the desktop and scroll capture stitches normally.

Fix: drop no_screen_share = true from that rule. Trade-off: the Omasnap overlay shows up in screen shares while it is open.

BareTread avatar Oct 26 '26 14:10 BareTread