From 12f912e9ed0b5decb5e88941a631619652b3ee3e Mon Sep 17 00:00:00 2001 From: shmibs Date: Tue, 7 Jul 2015 16:13:25 -0700 Subject: make .zshrc portable also remove extraneous commands --- .config/sxiv/exec/key-handler | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to '.config/sxiv/exec/key-handler') diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler index 01ec679..11160af 100755 --- a/.config/sxiv/exec/key-handler +++ b/.config/sxiv/exec/key-handler @@ -24,16 +24,8 @@ do notify-send "uploaded $(basename $file) to /tmp/" fi ;; - "i") - scp "$file" shmibbles.me:http/img/ - if [ $? -ne 0 ]; then - notify-send "uploading $(basename $file) to /img/ failed" - else - name=$(echo "http://shmibbles.me/img/$(basename $file)" | sed 's/ /%20/g') - echo "$name" | tr -d '\n' | xclip -i -selection clipboard - echo "$name" | tr -d '\n' | xclip -i -selection primary - notify-send "uploaded $(basename $file) to /img/" - fi + *) + notify-send "command not recognised" ;; esac done -- cgit v1.2.3