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/grim.md

29 lines
531 B
Markdown
Raw Normal View History

# grim
> Grab images (Screenshots) from a Wayland compositor.
> More information: <https://sr.ht/~emersion/grim>.
- Screenshot all outputs:
`grim`
- Screenshot a specific output:
`grim -o {{path/to/output_file}}`
- Screenshot a specific region:
2025-03-05 01:56:20 +02:00
`grim -g "{{x_position}},{{y_position}} {{width}}x{{height}}"`
- Select a specific region and screenshot it, (using slurp):
`grim -g "{{$(slurp)}}"`
- Use a custom filename:
`grim "{{path/to/file.png}}"`
- Screenshot and copy to clipboard:
`grim - | {{clipboard_manager}}`