snippetbashTip
grim — Grab images (Screenshots) from a Wayland compositor. More information: <https://sr.ht/~emersion/grim
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:
grimScreenshot 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
grimScreenshot 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.