I'm trying to use
sxiv to pick an image and pipe that image to the clipboard.
I'm currently using this command:
cat "$(sxiv -foqrt ~/Pictures 2>/dev/null | sed 1q)" | xclip -selection clipboard -t image/png
However, this would only work if the chosen file is a
png. It doesn't work with just
-t image on
xclip. I have multiple file types I want to copy.
How can I get pass the file type problem?