Skip to content

fix(screenshot): allow repeated annotated captures#2

Open
louzt wants to merge 1 commit into
0xwal:mainfrom
louzt:fix/repeatable-screenshot-lock
Open

fix(screenshot): allow repeated annotated captures#2
louzt wants to merge 1 commit into
0xwal:mainfrom
louzt:fix/repeatable-screenshot-lock

Conversation

@louzt
Copy link
Copy Markdown

@louzt louzt commented Apr 26, 2026

Summary

  • keep the screenshot lock in $XDG_RUNTIME_DIR and recover stale lockfiles by PID
  • create the screenshot directory automatically before saving captures
  • launch Satty without blocking the script so a new annotated capture can start while an earlier Satty window is still open

Problem

Annotated captures stayed locked for the whole Satty session, so opening a previous preview prevented taking the next screenshot.

Testing

  • built the script with scriptisto build /home/lou/niri-scripts/screenshot
  • validated the updated local setup on niri

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.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