LinuxCommandLibrary

grim

Grab images (Screenshots) from a Wayland compositor.

TLDR

Screenshot all outputs

$ grim
copy


Screenshot a specific output
$ grim -o [path/to/output_file]
copy


Screenshot a specific region
$ grim -g "[<x_position>,<y_position> <width>x<height>]"
copy


Select a specific region and screenshot it, (using slurp)
$ grim -g "[$(slurp)]"
copy


Use a custom filename
$ grim "[path/to/file.png]"
copy


Screenshot and copy to clipboard
$ grim - | [clipboard_manager]
copy

Copied to clipboard