aboutsummaryrefslogtreecommitdiffstats
path: root/.config/sxiv/exec/key-handler
diff options
context:
space:
mode:
Diffstat (limited to '.config/sxiv/exec/key-handler')
-rwxr-xr-x.config/sxiv/exec/key-handler12
1 files changed, 2 insertions, 10 deletions
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