wlswo
Mechanism: The Rust backend runs a high-priority background loop using AXUIElementCopyElementAtPosition to track the element under the cursor.
Optimization: To minimize overhead, the polling frequency is throttled and only ramps up when the overlay is active. We use CoreGraphics to first detect mouse movement delta before triggering the heavier Accessibility API calls.
Xray – A minimal screenshot tool for developers (Rust/Tauri)
Show HN: Xray – A minimal screenshot tool for developers (Rust/Tauri)
I built Xray because I was frustrated with existing screenshot tools that were either too bloated, required accounts, or didn't play well with multiple monitors and high-DPI scaling.Xray is a lightweight, open-source screenshot utility built with Rust and Tauri. The goal was to create a tool that stays out of the way but provides precise control when needed.Key Technical Specs: Core: Built...