@nikitonsky On Linux, I don't think any compositor exposes all the APIs that you'd need for this (specifically, capturing background toplevel surfaces). I'm sure that something like this would be really fun to develop, but it's only really of any use on a stacking window manager.
@whynothugo @nikitonsky probably possible on X11 tho if you're willing to fight that junk