1 2 3 4
#!/bin/sh FNAME="$(echo "" | barmenu -p 'filename: ')" maim -i $(xdotool getactivewindow) "$FNAME"