Files
omarchycn/default/hypr
David Heinemeier HanssonandClaude Fable 5 1e996609a0 Capture the entire screen with Return during a region pick
A previous submap attempt was brittle because the script owned the
keyboard state: if it died between enter and exit, the submap stuck.
This version lets the compositor own both edges. The Lua config binds
plain Return when a layer surface with slurp's "selection" namespace
opens and unbinds it when the last one closes, so the bind exists
exactly while a pick is on screen. slurp dying for any reason (cancel,
crash, pkill, SIGKILL of the picker) fires layer.closed and the bind
evaporates — there is no code path where it leaks.

Return invokes omarchy-capture-region --take-fullscreen, which flags a
marker in XDG_RUNTIME_DIR and dismisses slurp; the picker treats an
empty slurp result with a fresh marker as the focused monitor, reusing
the existing fullscreen path. Since monitor focus follows the cursor,
that is the monitor under the slurp crosshair. The recording flow gets
monitor:NAME from the existing match, so Return during a recording
pick starts a native full-monitor capture.

The signal mode no-ops unless slurp is actually running, and both the
signal protocol and the layer-scoped bind lifecycle are verified live:
bind present only while slurp is open, real picks resolved by the
signal on both the screenshot and recording paths, no leftover binds.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 10:13:19 -07:00
..
2026-06-22 17:38:50 +02:00
2026-05-11 10:39:22 -04:00
2026-06-20 22:19:53 +02:00
2026-05-11 10:39:22 -04:00
2026-06-04 18:35:01 -04:00
2026-05-11 10:39:22 -04:00
2026-06-29 08:51:15 -05:00
2026-06-08 12:03:40 -04:00
2026-05-11 10:39:22 -04:00
2026-05-19 22:13:09 +02:00
2026-05-11 10:39:22 -04:00
2026-05-19 22:18:13 +02:00