Skip to content

xclip

Usage

Copy pipe input to clipboard

somecommand | xclip -selection clipboard

Save an image from the clipboard

If you have copied an image to the clipboard and you want to save it as a file, use:

xclip -selection clipboard -target image/png -out > out.png