The grim package provides a tool for taking screenshots in a Wayland environment. A common setup is combining this package with slurp-1.5.0 to take a screenshot of a specific region on the fly.
libpng, Pixman, Wayland, and Wayland-Protocols
Install grim by running the following commands:
mkdir build && cd build && meson setup --prefix=/usr --buildtype=release .. && ninja
Now, as the root
user:
ninja install