prepare for new laptop
[dotfiles.git] / x / .local / bin / scr
index 5197c21..c54bf98 100755 (executable)
@@ -1,6 +1,5 @@
 #!/bin/sh -e
-[ "$#" -eq 1 ] && CROP="$(slop -t 0 -f "-crop %g")"
+[ "$#" -ne 1 ] && CROP="" || CROP="-window root"
 URL="scr/$(date +%F_%H-%M-%S).png"
-import -window root $CROP png:- | \
-       ssh ygdrassil ssh martlubbers.net "cat \> public_html/$URL"
+import $CROP png:- | ssh helheim2 cat \> /var/www/martlubbers.net/$URL
 echo "http://martlubbers.net/$URL" | xclip -f | xargs -I{} notify-send {}