repositories
/
dotfiles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update dwm
[dotfiles.git]
/
x
/
.local
/
bin
/
scr
diff --git
a/x/.local/bin/scr
b/x/.local/bin/scr
index
5197c21
..
c54bf98
100755
(executable)
--- a/
x/.local/bin/scr
+++ b/
x/.local/bin/scr
@@
-1,6
+1,5
@@
#!/bin/sh -e
#!/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"
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 {}
echo "http://martlubbers.net/$URL" | xclip -f | xargs -I{} notify-send {}