1 2 3 4 5 6
#!/bin/sh filename=$(date +%d_%m_%Y) if [[ "$1" ]] ; then filename="$1" fi xclip -selection clipboard -t image/png -o > $filename