add bar, fix xinitrc, add vdirsyncer to imap and update config.h
[dotfiles.git] / x / .local / bin / scr
index 184b5d8..f34ccaf 100755 (executable)
@@ -1,9 +1,6 @@
-#!/bin/bash
-set -e
-[[ "$#" -eq 1 ]] && CROP="$(slop -t 0 f '-crop %g')"
-URL="$(date +%F_%H-%M-%S).png"
-import -window root $CROP -quality 90 png:- | curl -s\
-       -u "ftp@martlubbers.net:$(pass ftp.martlubbers.net/ftp@martlubbers.net)"\
-       -T- "ftp://martlubbers.net/public_html/scr/$URL"
-echo "https://martlubbers.net/scr/$URL" |\
-       xclip -f -sel c | xclip -f | xargs -I{} notify-send {}
+#!/bin/sh -e
+[ "$#" -eq 1 ] && CROP="$(slop -t 0 -f "-crop %g")"
+URL="scr/$(date +%F_%H-%M-%S).png"
+import -window root $CROP png:- | \
+       ssh helheim cat \> /var/www/martlubbers.net/$URL
+echo "http://martlubbers.net/$URL" | cloo.gl | xclip -f | xargs -I{} notify-send {}