aboutsummaryrefslogtreecommitdiffstats
path: root/.config/sxiv
diff options
context:
space:
mode:
authorshmibs <shmibs@gmail.com>2014-04-26 23:56:24 -0700
committershmibs <shmibs@gmail.com>2014-04-26 23:56:24 -0700
commit6ad6dc3e7002415f59e514794fad2726e25ddc62 (patch)
tree7c4a890b3717ab4b2e3b9d7daea0afb6df9743ea /.config/sxiv
parentdbc8bfc9cc6f878469db90b159419b7bb476bd94 (diff)
downloaddotfiles-6ad6dc3e7002415f59e514794fad2726e25ddc62.tar.gz
changed theme
Diffstat (limited to '.config/sxiv')
-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