My solution (Ubuntu 20.04.1) was to use only the first part of Faith Baltaci's answer:
gnome-screenshot -acf /tmp/test && cat /tmp/test
My solution (Ubuntu 20.04.1) was to use only the first part of Faith Baltaci's answer:
gnome-screenshot -acf /tmp/test && cat /tmp/test