Repository navigation
v1.0.0
Wayloop v1.0.0 (Stage 2)
Stage 2 introduces persistent Wayland clipboard ownership inside the headless daemon, protected two-part binary IPC, isolated task dispatch, bilingual D-Bus notifications, and overlay toggle lifecycle management — maintaining 0 MB VRAM and ~5–6 MB RSS in the background.
✨ What's New
- Persistent Wayland Clipboard (
wayloop-clipboard)- Added the
crates/wayloop-clipboardcrate built on pure-Rustwl-clipboard-rs(ext-data-control-v1+zwlr-data-control-v1), supportingimage/pngand UTF-8text/plain. - Runs clipboard ownership on dedicated OS threads (
Options::foreground(true)+ServeRequests::Unlimited) sowayloop stop/SIGTERMshuts down immediately without stalling on Tokiospawn_blocking. - Serialized concurrent copy operations and added generation-safe
active_genstracking so rapid back-to-back captures or failed retries never corrupthas_clipboard_datastatus.
- Added the
- Protected Binary
SubmitCropIPC- Implemented two-part binary PNG transfer (
SubmitCropJSON header + raw PNG bytes) insrc/client.rsandsrc/daemon.rs. - Enforces non-zero dimensions,
0 < byte_len <= max_ipc_payload_mbbefore buffer allocation, socket I/O timeouts, and 8-byte PNG signature validation (is_valid_png_header).
- Implemented two-part binary PNG transfer (
- Task Isolation & End-to-End Full-Screen Copy
- Dispatches crop actions (
Copy, atomic0600Save) in isolatedtokio::spawnworkers (spawn_blockingfor Wayland roundtrips and disk writes) so individual failures cannot crash the daemon. - Added
wayloop capture --mode full --action copyto capture and push screenshots directly to the persistent Wayland clipboard via the daemon (preserving standalonewayloop capture --mode full --action save).
- Dispatches crop actions (
- Localized D-Bus Notifications (
notifyfeature)- Implemented bilingual (
EN/RU) desktop notifications via pure-Rustzbus(org.freedesktop.Notifications.Notify) with a 3-second timeout and[notifications]config gating (on_save,on_copy,on_error).
- Implemented bilingual (
- Overlay Toggle & Watchdog Foundation (
OverlayManager)- Added
src/overlay_mgr.rstracking active overlay child processes with gracefulSIGTERM→overlay_kill_grace_ms→SIGKILLescalation and clean reaping.
- Added
- Complete Bilingual Localization (
i18n.rs)- Added full English and Russian translations for all Stage 2 notifications, IPC errors, daemon logs, and CLI error messages.
🛡️ Verification
#![forbid(unsafe_code)]across the entire workspace;cargo clippy --workspace --all-targets -- -D warningsclean (both default features and--no-default-features).- 59 tests passing across
wayloop,wayloop-core,wayloop-capture, andwayloop-clipboard. - Verified live on Niri (Wayland):
wayloop capture --mode full --action copy->image/pngconfirmed viawl-paste-> instant gracefulwayloop stop.
Full Changelog: v0.5.0...v1.0.0