1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/maim.md
Managor 1f63ed5e22
linux*: refresh old pages part 1 (#16251)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2025-04-25 04:34:04 +03:00

20 lines
619 B
Markdown

# maim
> Screenshot utility.
> More information: <https://manned.org/maim>.
- Capture a screenshot and save it to the given path:
`maim {{path/to/screenshot.png}}`
- Capture a screenshot of the selected region:
`maim {{[-s|--select]}} {{path/to/screenshot.png}}`
- Capture a screenshot of the selected region and save it in the clipboard (requires `xclip`):
`maim {{[-s|--select]}} | xclip {{[-se|-selection]}} {{[c|clipboard]}} {{[-t|-target]}} image/png`
- Capture a screenshot of the current active window (requires `xdotool`):
`maim {{[-i|--window]}} $(xdotool getactivewindow) {{path/to/screenshot.png}}`