--- id: wmctrl version: "0.5" license: MIT license_treatment: permissive maintenance: dormant --- # wmctrl — A tool to programmatically control windows inside X License: permissive · Maintenance: dormant · Downloads: 207.0K/mo ## What it is and what it does wmctrl is a Python wrapper around the X Window System's window management capabilities. It lets you programmatically interact with windows on X-based desktops—querying window lists, moving and resizing windows, and manipulating window properties—without manual GUI interaction. The package depends only on attrs and supports Python 2.7 and Python 3.8 through 3.12. It is most useful in automation scripts, testing frameworks, and desktop tools that need to control or inspect window state. Because it targets X Window System specifically, it is not portable to Windows or macOS without a compatible X server. The dormant maintenance status reflects that the package is stable and feature-complete rather than actively developed, but it remains usable on systems where X11 is the window manager. Use it for: - Automate window positioning and sizing in X11-based desktop testing or CI/CD pipelines. - Build desktop automation scripts that manage application windows programmatically. - Query and monitor active windows in X11 environments for system administration. - Integrate window control into Python-based window managers or tiling utilities. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. wmctrl provides programmatic control over windows in X Window System environments, allowing you to query, move, resize, and manage window properties from Python. Yes, if you are working on X11-based systems and need programmatic window control. The low install friction, permissive MIT license, stable status, and zero known vulnerabilities make it a safe choice. However, it is only useful on X Window System environments; it will not work on Windows or macOS without an X server. ## Install pip install wmctrl uv add wmctrl poetry add wmctrl ## Installing wmctrl Before you install: Low install friction with a single lightweight dependency (attrs). Maintenance is dormant—last release was 2023-09-16 and last commit 2024-09-03—but marked Production/Stable, suggesting the package is feature-complete rather than abandoned. License in practice: MIT license is permissive; you can use, modify, and distribute wmctrl with minimal restrictions, making it safe for both open-source and commercial projects. Quickstart: pip install wmctrl import wmctrl windows = wmctrl.Window.list() Requires X Window System and the underlying wmctrl binary to be installed on the target system. Verify before relying: - Full scope of window management operations supported beyond basic query and manipulation. - Whether attrs is used only at install time or as a runtime dependency. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: dormant - Downloads: 207.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags X window manager control, programmatic window management, wmctrl python wrapper, X11 window manipulation, desktop window automation, x11-desktop, window-automation [View on SkillFed](https://skillfed.io/packages/wmctrl) · [View on PyPI](https://pypi.org/project/wmctrl/)