From 6ad6dc3e7002415f59e514794fad2726e25ddc62 Mon Sep 17 00:00:00 2001 From: shmibs Date: Sat, 26 Apr 2014 23:56:24 -0700 Subject: changed theme --- .config/sxiv/exec/key-handler | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to '.config/sxiv') 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 -- cgit v1.2.3