wmctrl
« Back to VersTracker
Description:
UNIX/Linux command-line tool to interact with an EWMH/NetWM
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: System utilities
Tags: window-manager cli automation x11 linux
Install: brew install wmctrl
About:
Wmctrl is a command-line tool designed to interact with an EWMH/NetWM compatible window manager. It allows users to query and manage the window state and desktop environment programmatically. This utility is essential for scripting window arrangements and automating desktop interactions.
Key Features:
  • Query window list and properties
  • Activate, minimize, or close windows
  • Move and resize windows via CLI
  • Switch virtual desktops/workspaces
Use Cases:
  • Automating window layout management for development workflows
  • Creating custom scripts to organize workspace windows
  • Remote desktop control and automation
Alternatives:
  • xdotool – xdotool offers broader input simulation (mouse/keyboard) while wmctrl focuses on window management.
  • wmii – wmii is a tiling window manager with built-in scripting, whereas wmctrl is a standalone utility for any EWMH compliant WM.
Version History
Detected Version Rev Change Commit