Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

33
linux/wmctrl Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# 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 {{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}}`