From: Mart Lubbers Date: Thu, 3 Oct 2019 06:23:22 +0000 (+0200) Subject: scr X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=5d0ccc4a8c7847b067d7ed5e5aae5711eedd8c8a;p=dotfiles.git scr --- diff --git a/vim/.vim/pack/plugins/start/vimtex b/vim/.vim/pack/plugins/start/vimtex index b2385ed..cf6ac50 160000 --- a/vim/.vim/pack/plugins/start/vimtex +++ b/vim/.vim/pack/plugins/start/vimtex @@ -1 +1 @@ -Subproject commit b2385ed9016442a27c8ce028ab566de864ee1910 +Subproject commit cf6ac500f45d7cce4a52d6bdb4ecbec811922fbc diff --git a/x/.local/bin/scr b/x/.local/bin/scr index f34ccaf..ab6e6c2 100755 --- a/x/.local/bin/scr +++ b/x/.local/bin/scr @@ -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 {}