summarylogtreecommitdiffstats
path: root/imagy-xfce4
diff options
context:
space:
mode:
Diffstat (limited to 'imagy-xfce4')
-rwxr-xr-ximagy-xfce418
1 files changed, 18 insertions, 0 deletions
diff --git a/imagy-xfce4 b/imagy-xfce4
new file mode 100755
index 000000000000..75eddc87de64
--- /dev/null
+++ b/imagy-xfce4
@@ -0,0 +1,18 @@
+#!/bin/bash
+# by Anatoly Rugalev
+
+UPLOAD_URI="http://imagy.me/upload"
+
+TMP_FILE=`xfce4-screenshooter -ro echo`
+
+if [ -n "$TMP_FILE" ]; then
+ URL=$(curl -s --form imagedata=@$TMP_FILE $UPLOAD_URI | awk '{print $1}')
+
+ echo "$URL" | xclip -selection primary
+ echo "$URL" | xclip -selection clipboard
+
+ notify-send "Screenshot URL was copied to clipboard"
+ echo $URL
+
+ rm $TMP_FILE
+fi