Command-line tool
wmctrl
brew/wmctrl
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
UNIX/Linux command-line tool to interact with an EWMH/NetWM
At a glance
- Type
- Command-line tool
- Install on
- macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install wmctrl
Linux
brew install wmctrl
List all windows, managed by the window manager
wmctrl -l
Switch to the first window whose (partial) title matches
wmctrl -a window_title
Move a window to the current workspace, raise it, and give it focus
wmctrl -R window_title
Related command-line tools
- nq
Unix command-line queue utility - linkerd
Command-line utility to interact with linkerd - litmusctl
Command-line interface for interacting with LitmusChaos - sourcekitten
Framework and command-line tool for interacting with SourceKit - ioctl
Command-line interface for interacting with the IoTeX blockchain - nitrocli
A command line tool for interacting with Nitrokey devices. - Sentry CLI
Command-line utility to interact with Sentry - drg
A command line tool to interact with a drogue-cloud instance.
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents