1 2 3
#!/bin/sh import -silent -window "$(xdotool selectwindow)" png:- | xclip -sel clipboard -t image/png -i