I'm using Ubuntu on a laptop (with its built-in screen disabled) connected to a 3840x2160 external display.
Before sharing my screen on a video chat, I always like to switch the resolution down to 1920x1080.
I want to be able to quickly toggle the resolution of my external display between 3840x2160 and 1920x1080 via a keyboard shortcut, such as SuperPrntScrn.
This really old answer might be relevant as a starting place, but I'm not sure where to go from here.
As an example (but not on Ubuntu), I was able to do it on a Macbook following this answer.