}
function take_screenshot() {
- FILENAME="$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 6 | head -n 1).png"
+ FILENAME="$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 6 | head -n 1).png"
gnome-screenshot -f "${LOCALPATH}/${FILENAME}" -p "$@"
scp -q "${LOCALPATH}/${FILENAME}" "${REMOTEUSER}@${REMOTEHOST}:${REMOTEPATH}"
echo -n "${URLBASE}/${FILENAME}"|xclip -selection p