Commandline screenshot

grim, maim, shotgun are X11 based which do not work.

Tried installing gnome-screenshot on arch linux, returns a permission error.

How can I activate the built-in gnome screenshot tool from commandline? I need to use it in a script. I can map the screenshot to any key in settings, but I can’t use in a shell script.

Any ideas?