X-Git-Url: https://git.slaskete.net/einar-bin/blobdiff_plain/858e662f521c505898e437c54615c56faae32aee..2528aa2a8a22a7c319a071104e0735f5f959c8f7:/screenshot.sh diff --git a/screenshot.sh b/screenshot.sh index 858797a..762005f 100755 --- a/screenshot.sh +++ b/screenshot.sh @@ -22,8 +22,8 @@ function take_screenshot() { 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}" }