Ubuntu 22.04 comes with a brand new build-in screenshot tool. Using this tool you can take image screenshots and also record you desktop screen video. This video recording of Ubuntu desktop works very well on Wayland display server protocol.
Activate New Ubuntu Screen cast Tool
Just press the Print Screen button in your keyboard. It will open the new Ubuntu screenshot/screencast tool. It comes with three selection options, take the screenshot of the selected area, entire screen, or selected application window. You can also include your mouse cursor in your screenshot and screencast. Toggle between Screenshot and Screencast using the still and video camera icons.
Dy default the screenshots are saved to the Screenshots folder under the Pictures folder and saved in clipboard also. Video recordings are saved to the Screencasts folder under the video folder