FILENAME="$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 6 | head -n 1).png"
gnome-screenshot -f "${LOCALPATH}/${FILENAME}" -p "$@"
scp -q "${LOCALPATH}/${FILENAME}" "${REMOTEUSER}@${REMOTEHOST}:${REMOTEPATH}"
- printf "${URLBASE}/${FILENAME}"|xclip -selection p
- printf "${URLBASE}/${FILENAME}"|xclip -selection c
+ echo -n "${URLBASE}/${FILENAME}"|xclip -selection p
+ echo -n "${URLBASE}/${FILENAME}"|xclip -selection c
notify-send -i applets-screenshooter "screenshot.sh" "Screenshot published to ${URLBASE}/${FILENAME}"
}