The slurp package selects a region of the screen in a Wayland environment. When used with grim-1.5.0, it is able to select a specific region to be captured in a screenshot, like Microsoft's Snipping Tool on Windows.
Download (HTTP): https://github.com/emersion/slurp/archive/v1.5.0/slurp-1.5.0.tar.gz
Cairo, libxkbcommon, Wayland, and Wayland-Protocols
Install slurp by running the following commands:
mkdir build && cd build && meson setup --prefix=/usr --buildtype=release .. && ninja
Now, as the root
user:
ninja install