wmctrl
CLI for X Window Manager. More information: https://manned.org/wmctrl.
- List all windows, managed by the window manager:
wmctrl -l
- Switch to the first window whose (partial) title matches:
wmctrl -a
- Move a window to the current workspace, raise it, and give it focus:
wmctrl -R
- Switch to a workspace:
wmctrl -s
- Select a window and toggle fullscreen:
wmctrl -r -b toggle,fullscreen
- Select a window and move it to a workspace:
wmctrl -r -t
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
