feat(regionSelector): screenshot annotation editor on Super+Shift+S - #206
Open
xdvi wants to merge 5 commits into
Open
feat(regionSelector): screenshot annotation editor on Super+Shift+S#206xdvi wants to merge 5 commits into
xdvi wants to merge 5 commits into
Conversation
xdvi
force-pushed
the
feat/screenshot-annotation-editor
branch
2 times, most recently
from
July 24, 2026 04:24
da60f05 to
54ff306
Compare
Unified capture-crop-annotate overlay for screenshotEdit: dimmed screen, resizable crop, pen/line/rect/circle/arrow/text/highlight/blur/counter, per-object color/stroke, undo/redo, duplicate and delete (toolbar + Del). Multi-monitor: one interactive output, stable drag (no focus thrash). Export crops via ShaderEffectSource. Ctrl+S/Done save to disk; Ctrl+C/copy button clipboard only; Esc discards.
Saves the annotation editor custom colors, last picked color, and last stroke width across sessions.
Mod+Shift+S opens the annotation editor instead of an instant copy. Migration 031 rebinds niri users and skips customized binds.
xdvi
force-pushed
the
feat/screenshot-annotation-editor
branch
from
July 24, 2026 04:29
54ff306 to
13bf0a1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Mod+Shift+Sopens region capture in an annotation editor instead of copying immediately — crop and draw before export.Single overlay (no phases): dims the screen, drag a resizable crop, toolbar from the start. New IPC
region screenshotEditand self-containedScreenshotEditor.qml/AnnotationColorPicker.qml; copy/search/ocr/record stay unchanged.Tools: pen, line, rectangle (rounded, optional fill), circle/ellipse (optional fill), arrow, text (bold/italic/underline/strikethrough + font size), highlighter, blur, auto-numbered counters.
Editing:
Ctrl+D) and delete (Del/ Backspace) for the focused selectionCtrl+Z/Ctrl+Y)regionSelector.customColors,lastCustomColor,lastStrokeWidth)Export / shortcuts:
Ctrl+Sor Done → save to screenshots folder onlyCtrl+Cor copy button → clipboard only (no permanent file)Escor close → discardShaderEffectSource(avoids DPR/scale mismatch)Keybind change
Mod+Shift+S→region screenshotEdit(was instantregion screenshot).70-binds.kdl, dots)031rebinds niri users; skipped if the bind was customizedregion screenshotstill available (snip menu / IPC)Commits
feat(regionSelector): add screenshotEdit annotation editorfeat(config): persist annotation colors and stroke widthfeat(keybinds): bind Super+Shift+S to screenshotEditdocs: document screenshotEdit function and keybindfix(dock): hide dock while screenshot editor is openTesting
inir restart && inir logs— noTypeError/ReferenceErrorCtrl+D/Del, undo/redoCtrl+S/ Done → file in screenshots folderCtrl+C/ copy → clipboard only031idempotent; skips customized bindsqs -c inir ipc call region screenshotEditopens editor