git.slaskete.net
/
einar-bin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
858e662
)
Change from printf to echo -n
author
Einar Jørgen Haraldseid
<einar@haraldseid.net>
Tue, 7 Apr 2015 21:29:40 +0000
(23:29 +0200)
committer
Einar Jørgen Haraldseid
<einar@haraldseid.net>
Tue, 7 Apr 2015 21:29:40 +0000
(23:29 +0200)
screenshot.sh
patch
|
blob
|
history
diff --git
a/screenshot.sh
b/screenshot.sh
index 858797a30c48bb7cd801bd4e4ef2006b74ebdb49..762005f4d3acdb95e8cf7f3cd598db2ed13a9886 100755
(executable)
--- 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}"
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}"
}
notify-send -i applets-screenshooter "screenshot.sh" "Screenshot published to ${URLBASE}/${FILENAME}"
}