28 lines
495 B
Markdown
28 lines
495 B
Markdown
# grim
|
||
|
||
> 从 Wayland 合成器抓取图像(截图)。
|
||
> 更多信息:<https://sr.ht/~emersion/grim>。
|
||
|
||
- 截取所有输出:
|
||
|
||
`grim`
|
||
|
||
- 截取特定输出:
|
||
|
||
`grim -o {{path/to/output_file}}`
|
||
|
||
- 截取特定区域:
|
||
|
||
`grim -g "{{<x_position>,<y_position> <width>x<height>}}"`
|
||
|
||
- 选择特定区域并截图(使用 slurp):
|
||
|
||
`grim -g "{{$(slurp)}}"`
|
||
|
||
- 使用自定义文件名:
|
||
|
||
`grim "{{path/to/file.png}}"`
|
||
|
||
- 截图并复制到剪贴板:
|
||
|
||
`grim - | {{clipboard_manager}}` |