@samurro I could never get it to work (there's a many year old issue somewhere where nobody knows what's going on). I ended up writing my own screenshot tool instead and press a key on it when I want to open the screenshot in an editor.
Shotman talks to the compositor directly. Using the portals is way too slow because the screenshot needs to be encoded, written to filesystem, re-read from filesystem and decoded again into the original format.