maim

Screenshot utility. More information: https://github.com/naelstrof/maim.

maim path/to/screenshot.png

maim --select path/to/screenshot.png

maim --select | xclip -selection clipboard -target image/png

maim --window $(xdotool getactivewindow) path/to/screenshot.png