How gakuseei/rishot works
rishot is a Wayland screenshot-and-annotation application built on Quickshell. The main workflow is to launch it, capture a region/window/monitor, annotate the image, then copy, save, or upload it; CLI modes can instead copy, emit, or extract text and codes without opening the editor. The README documents these capabilities, but only the library modules were excerpted, so UI and capture links below rely on README statements where noted; uncertain implementation-level connections are omitted.
Main entry points: shell.qml App shell · Overlay.qml Selection overlay · Toolbar.qml Annotation toolbar · SettingsPanel.qml Settings panel
Components 23
Capture and selection
- CLI launcher
bin/rishot - App shell
src/shell.qml - Capture modes
src/shell.qml - Window providers
src/lib/providers.js - Selection overlay
src/Overlay.qml
Annotation editor
- Annotation toolbar
src/Toolbar.qml - Annotation history
src/lib/AnnotationModel.js - Annotation hit testing
src/lib/hittest.js - Selection geometry
src/lib/coords.js
Output and settings
- Settings panel
src/SettingsPanel.qml - Configuration
src/Singletons/Config.qml - Save copy upload
src/shell.qml - OCR and code scan
src/shell.qml
Shared runtime logic
- Locale lookup
src/lib/i18n.js - Key binding logic
src/lib/keymap.js
Other components
- User
- Compositor window data
- Wayland compositor
- Capture backend
- System clipboard
- File destination
- Upload endpoint
- OCR and barcode tools
Connections 24
- User → CLI launcher: launches
README.md - CLI launcher → App shell: starts
README.md - App shell → Capture modes: orchestrates
README.md - Capture modes → Wayland compositor: queries windows
README.md - Capture modes → Window providers: parses window data
- Window providers → Compositor window data: parses
src/lib/providers.js - Capture modes → Capture backend: captures image
README.md - Capture modes → Selection overlay: opens editor
README.md - User → Selection overlay: selects area
README.md - Selection overlay → Selection geometry: uses geometry
- Selection overlay → Annotation toolbar: shows tools
- Annotation toolbar → Annotation history: edits annotations
- Annotation toolbar → Annotation hit testing: selects annotations
- User → Settings panel: configures
README.md - Settings panel → Configuration: writes settings
README.md - App shell → Save copy upload: handles output
README.md - Save copy upload → System clipboard: copies image
README.md - Save copy upload → File destination: saves image
README.md - Save copy upload → Upload endpoint: uploads image
README.md - App shell → OCR and code scan: runs extraction
README.md - OCR and code scan → OCR and barcode tools: invokes tools
README.md - OCR and code scan → System clipboard: copies results
README.md - App shell → Locale lookup: resolves messages
- Settings panel → Key binding logic: formats bindings