aboutsummaryrefslogtreecommitdiffstats
path: root/.config/sxiv/exec
diff options
context:
space:
mode:
Diffstat (limited to '.config/sxiv/exec')
-rwxr-xr-x.config/sxiv/exec/key-handler14
1 files changed, 14 insertions, 0 deletions
diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler
index 50dcfc7..6dbf6b6 100755
--- a/.config/sxiv/exec/key-handler
+++ b/.config/sxiv/exec/key-handler
@@ -11,4 +11,18 @@ case "$1" in
rm "$2" ;;
"g")
gimp "$2" & ;;
+"s")
+
+ scp "$2" shmibbles.me:/srv/http/tmp/
+ echo "http://shmibbles.me/tmp/$(basename $2)" | xclip -i -selection clipboard
+ echo "http://shmibbles.me/tmp/$(basename $2)" | xclip -i -selection primary
+ notify-send "uploaded $(basename $2) to /tmp/"
+ ;;
+"i")
+ scp "$2" shmibbles.me:/srv/http/img/
+ echo "http://shmibbles.me/img/$(basename $2)" | xclip -i -selection clipboard
+ echo "http://shmibbles.me/img/$(basename $2)" | xclip -i -selection primary
+ notify-send "uploaded $(basename $2) to /img/"
+ ;;
+
esac