Maim

Save a mouse-selected area of the screen to a file
maim --select test.png

Take screenshot of a selection of the screen and put it in the clipboard


maim -su | xclip -selection clipboard -t image/png -i