Skip to main content

window-snap

Installation:

pipx install window_snap

Configuring

By default, the program looks at %userprofile%\.config\window-snap\config.yaml.

The folder to look in for config.yaml is configurable with the WINDOW_SNAP_CONFIG_DIR environment variable.

Current Feature Set

This module currently supports the following:

  • YAML-driven window layout management using a windows mapping in config.yaml.
  • Window matching by title (default) or executable name (find_by_exe).
  • Moving windows to a target monitor (monitor index in config is 1-based).
    • Leftmost monitor is 1, numbered increasing moving to the right
    • absolute pixel values (integer [0,monitor-width]), or
    • fractional values (0-1] relative to monitor work area.
  • Maximize handling via maximized: true.
  • Temporary on-top handling via on_top: true.
  • Partial updates where unspecified values keep the window's current position/size.
  • Multi-monitor awareness with monitor detection from window geometry.
  • Safe handling when windows are missing or configuration entries are invalid (logs and continues).

Example config snippet:

windows:
  chrome.exe:
    find_by_exe: true
    on_top: true
    monitor: 2
    left: 0
    top: 0
    width: 0.5
    height: 1

on_top only puts the window on top at the moment during processing.

Command-line features:

  • window-snap applies the configured layout from the default config path.

  • Snapping is skipped when running inside a Windows Remote Desktop session.

    window-snap --force applies the configured layout even during a Remote Desktop session.

  • window-snap --store-current captures current top-level window positions and writes:

    • _config_version
    • windows (captured destinations)
    • available_exe_names (title -> executable mapping)
  • -v/--verbose increases logging verbosity.

Metadata

Release files for window-snap 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for window-snap 0.3.1
File Size Uploaded Provenance Actions
window_snap-0.3.1.tar.gz 10.1 kB With provenance Details for window_snap-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for window-snap 0.3.1
File Interpreter ABI Platform Actions
window_snap-0.3.1-py3-none-any.whl Python 3 none any Details for window_snap-0.3.1-py3-none-any.whl

Total release size: 21.3 kB

Release files / window_snap-0.3.1.tar.gz

Download URL window_snap-0.3.1.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
88d0ef1e1b5010aab66d909d317d9eafe15a25a44a2d2a386b16c29125e53e77
BLAKE2b-256 checksum
How to use checksums
c9da971f4d510f99222db0b8eed944e5d0ae7e7b8c474755086ff744c5132e02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 26, 2026.

Transparency log

Release files / window_snap-0.3.1-py3-none-any.whl

Download URL window_snap-0.3.1-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0caaf0148086e64e3b88a1ed7692792e11be824e76cea79d48073044d4a1ea8d
BLAKE2b-256 checksum
How to use checksums
2d9d365bf443b91a8432717b8d6b593a0696d60590516b2d41f482a560d9e4f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 26, 2026.

Transparency log

Security for window-snap 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for window_snap-0.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page