Skip to content
Squidys-ToolsPublic

About

No description, website, or topics provided.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

LoopW

LoopW is a Windows window manager built around a radial menu. Hold the trigger, move toward a direction, and release to place the active window. It is a native Rust + iced and Win32 app inspired by Loop for macOS.

This tree is the current Rust implementation (iced 0.14 UI, self-contained win-x64 EXE, no .NET runtime). The former C# / WPF implementation remains in git history for reference.

The core product path, settings model, radial/preview surfaces, settings UI, and native Win32 backend are implemented. Automated checks cover the core logic, settings contracts, resident lifecycle, IPC, placement, overlay window styles, and tray-popup state. Manual visual checks across window types, display scales, and Windows configurations remain tracked in the QA checklist.

The current test inventory is 118 binary tests plus 82 UI/settings contract tests, for 200 tests under cargo test --all-targets --locked. The locked build, formatting check, tests, and warnings-denied Clippy are the release baseline. A bounded Windows integration harness lives under tools/; its environment-sensitive trigger-input limitation and the measured release performance results are recorded in docs/PERFORMANCE.md.

What it does

  • Opens a text-free radial menu at the cursor and previews the target frame.
  • Places windows into halves, quarters, thirds, two-thirds, centered zones, maximized zones, fullscreen, and custom resize areas.
  • Moves windows between monitors and can focus nearby windows by direction or z-order.
  • Supports resize, grow, shrink, fill-available-space, minimize, hide, undo, and stash/reveal actions.
  • Lets you create keybinds, cycles, trigger-bypass bindings, and custom radial wedge or center assignments.
  • Can snap title-bar drags to monitor edges and corners.
  • Handles mixed-DPI monitor layouts, screen padding, application exclusions, launch at login, tray operation, and single-instance activation.
  • Keeps the Winit event-target helper out of the taskbar while preserving the paint messages needed by the resident runtime.
  • Provides a small local command interface for scripts and automation.

The default trigger is Caps Lock. LoopW captures the configured trigger while it is active, so Caps Lock will not toggle its normal state unless you change the trigger in Settings.

Install

When a GitHub Release is available, download the Windows ZIP and checksum from the Releases page, extract the archive, and run LoopW.exe. The publish workflow produces a self-contained win-x64 build, so no separate runtime is needed for that package.

For now, building from source is the most reliable way to try the current code.

Build from source

You need:

  • Windows
  • The Rust stable toolchain (rustup)

From PowerShell:

git clone https://github.com/Squidys-Tools/loop-w.git
cd loop-w
cargo build
cargo run

The app starts resident in the system tray. Open Settings from the tray popup, double-click the tray icon, or run LoopW.exe activate. Global hooks and overlays are wired through the Win32 backend; manual desktop validation is tracked in the QA checklist.

Run the automated checks with:

cargo fmt -- --check
cargo build --locked
cargo test --all-targets --locked
cargo clippy --all-targets --locked -- -D warnings

Ship a self-contained release binary with:

cargo build --release --locked

The EXE at target\release\LoopW.exe needs no separate runtime.

Configuration

LoopW saves settings here (same path and keys as the previous C# build, so existing files load without loss):

%LOCALAPPDATA%\LoopW\settings.json

Settings changes save automatically. The app normalizes invalid or older values when it loads them, and radial slots that point to missing keybinds fall back to no action. Saves go through a temp file + rename so a crash mid-write keeps the last complete file.

Global keyboard and mouse hooks are part of the product. Review the trigger and exclusion settings before using LoopW on a machine where those hooks are not appropriate.

Command interface

The running app accepts one command argument. Starting a second LoopW.exe passes the command to the existing tray instance through a same-user named pipe.

LoopW.exe activate
LoopW.exe list/actions
LoopW.exe list/keybinds
LoopW.exe list/all
LoopW.exe direction/right
LoopW.exe direction/next
LoopW.exe action/maximize

Use list/actions to see the action names supported by the current build.

For agent-friendly Windows driving, use the wrapper around the integration harness. It never prompts, supports JSON output, and tracks only processes it started:

.\tools\loopw-agent.ps1 doctor --json
.\tools\loopw-agent.ps1 run --suite all --profile release --build --json
.\tools\loopw-agent.ps1 launch --profile release --json
.\tools\loopw-agent.ps1 status --run-id <run-id> --json
.\tools\loopw-agent.ps1 stop --run-id <run-id> --yes --json

Use run --evidence-dir <path> to save the raw harness log and its JSON summary. Use stop --dry-run when inspecting cleanup before allowing it.

Project docs

  • docs/README.md maps the docs: user/ for how to use it, internals/ for why it is built this way, operations/ for how to build and ship it.
  • docs/ROADMAP.md tracks what is implemented and what is next.
  • docs/QA.md contains the manual Windows test checklist.
  • docs/BUGS.md records deferred minor issues with revisit triggers, so they are tracked without blocking the release gate.
  • docs/PERFORMANCE.md records release measurements and the limits of the current interaction probe.
  • CONTRIBUTING.md explains what kinds of PRs merge fastest.
  • specs/settings-ui-redesign-spec.md records the settings UI requirements and acceptance scenarios.

Port notes

  • src/core is platform-independent and fully unit tested (cargo test).
  • src/settings keeps the exact C# JSON contract (PascalCase keys, integer enums) with a tolerant loader.
  • src/ui is the iced 0.14 settings surface plus the shared text-free radial and preview canvas renderers. The settings canvases use fixed dimensions, cached geometry, and coordinate regression coverage; visual sign-off remains tracked in docs/BUGS.md and docs/QA.md.
  • src/win owns all Win32 side effects (hooks, window actions, snap, stash, IPC, tray). The backend is implemented and covered by bounded integration checks; physical-input and broad desktop validation remain environment-bound. Pure logic it depends on is tested in src/core.
  • The former large files (src/ui/app, src/win/stash_service, src/win/hooks, src/win/ipc, src/core/frame_math) are now directory modules of focused submodules; new code should stay modular.

License

LoopW is released under the MIT License.

About

No description, website, or topics provided.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages