Skip to content

v1.0.0

Choose a tag to compare

@Denxrc Denxrc released this 26 Nov 14:40
· 11 commits to master since this release

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-clipboard crate built on pure-Rust wl-clipboard-rs (ext-data-control-v1 + zwlr-data-control-v1), supporting image/png and UTF-8 text/plain.
    • Runs clipboard ownership on dedicated OS threads (Options::foreground(true) + ServeRequests::Unlimited) so wayloop stop / SIGTERM shuts down immediately without stalling on Tokio spawn_blocking.
    • Serialized concurrent copy operations and added generation-safe active_gens tracking so rapid back-to-back captures or failed retries never corrupt has_clipboard_data status.
  • Protected Binary SubmitCrop IPC
    • Implemented two-part binary PNG transfer (SubmitCrop JSON header + raw PNG bytes) in src/client.rs and src/daemon.rs.
    • Enforces non-zero dimensions, 0 < byte_len <= max_ipc_payload_mb before buffer allocation, socket I/O timeouts, and 8-byte PNG signature validation (is_valid_png_header).
  • Task Isolation & End-to-End Full-Screen Copy
    • Dispatches crop actions (Copy, atomic 0600 Save) in isolated tokio::spawn workers (spawn_blocking for Wayland roundtrips and disk writes) so individual failures cannot crash the daemon.
    • Added wayloop capture --mode full --action copy to capture and push screenshots directly to the persistent Wayland clipboard via the daemon (preserving standalone wayloop capture --mode full --action save).
  • Localized D-Bus Notifications (notify feature)
    • Implemented bilingual (EN / RU) desktop notifications via pure-Rust zbus (org.freedesktop.Notifications.Notify) with a 3-second timeout and [notifications] config gating (on_save, on_copy, on_error).
  • Overlay Toggle & Watchdog Foundation (OverlayManager)
    • Added src/overlay_mgr.rs tracking active overlay child processes with graceful SIGTERM → overlay_kill_grace_ms → SIGKILL escalation and clean reaping.
  • 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 warnings clean (both default features and --no-default-features).
  • 59 tests passing across wayloop, wayloop-core, wayloop-capture, and wayloop-clipboard.
  • Verified live on Niri (Wayland): wayloop capture --mode full --action copy -> image/png confirmed via wl-paste -> instant graceful wayloop stop.

Full Changelog: v0.5.0...v1.0.0