linux print screen

C++
Prt Scrn to take a screenshot of the desktop.
Alt + Prt Scrn to take a screenshot of a window.
Shift + Prt Scrn to take a screenshot of an area you select.sudo apt install flameshot
Source

Also in C++: