HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

grim — Grab images (Screenshots) from a Wayland compositor. More information: <https://sr.ht/~emersion/grim

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandimagesgrimfromwaylandscreenshotscligrab
linux

Problem

How to use the grim command: Grab images (Screenshots) from a Wayland compositor. More information: <https://sr.ht/~emersion/grim/>.

Solution

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:
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}}

Code Snippets

Screenshot all outputs

grim

Screenshot a specific output

grim -o {{path/to/output_file}}

Screenshot a specific region

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}}"

Context

tldr-pages: linux/grim

Revisions (0)

No revisions yet.