Files
tldr/pages.zh/linux/maim.md

20 lines
539 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# maim
> 截图工具。
> 更多信息:<https://github.com/naelstrof/maim>。
- 捕获屏幕截图并保存到指定路径:
`maim {{path/to/screenshot.png}}`
- 捕获选定区域的屏幕截图:
`maim --select {{path/to/screenshot.png}}`
- 捕获选定区域的屏幕截图并将其保存到剪贴板(需要 `xclip`
`maim --select | xclip -selection clipboard -target image/png`
- 捕获当前活动窗口的屏幕截图(需要 `xdotool`
`maim --window $(xdotool getactivewindow) {{path/to/screenshot.png}}`