In Ubuntu 22.04 LTS you can record your desktop quite easily by pressing print screen clicking on the video camera icon, then pressing the red button (I'd screenshot it but I don't know how to screenshot a screenshot).
The thing is, the final video is saved as a .webm file which is not widely supported, I would prefer to save it as an .mp4 file by default.