scr
authorMart Lubbers <mart@martlubbers.net>
Thu, 3 Oct 2019 06:23:22 +0000 (08:23 +0200)
committerMart Lubbers <mart@martlubbers.net>
Thu, 3 Oct 2019 06:23:22 +0000 (08:23 +0200)
vim/.vim/pack/plugins/start/vimtex
x/.local/bin/scr

index b2385ed..cf6ac50 160000 (submodule)
@@ -1 +1 @@
-Subproject commit b2385ed9016442a27c8ce028ab566de864ee1910
+Subproject commit cf6ac500f45d7cce4a52d6bdb4ecbec811922fbc
index f34ccaf..ab6e6c2 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 helheim cat \> /var/www/martlubbers.net/$URL
+import $CROP png:- | ssh helheim cat \> /var/www/martlubbers.net/$URL
 echo "http://martlubbers.net/$URL" | cloo.gl | xclip -f | xargs -I{} notify-send {}