1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 13:05:59 +02:00

wmctrl: add page (#4038)

This commit is contained in:
slashleo 2020-05-12 18:40:11 +02:00 committed by GitHub
parent d0bfb32fcb
commit 9aad4459a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

27
pages/linux/wmctrl.md Normal file
View file

@ -0,0 +1,27 @@
# wmctrl
> CLI for X Window Manager.
- 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}}`
- Switch to a workspace:
`wmctrl -s {{workspace_number}}`
- Select a window and toggle fullscreen:
`wmctrl -r {{window_title}} -b toggle,fullscreen`
- Select a window a move it to a workspace:
`wmctrl -r {{window_title}} -t {{workspace_number}}`