diff options
author | katherine <ageha@airen-no-jikken.icu> | 2019-12-08 09:43:44 -0700 |
---|---|---|
committer | katherine <ageha@airen-no-jikken.icu> | 2019-12-08 09:43:44 -0700 |
commit | bc06b8ae7e83c2901dff2bc7a2947b3e870be168 (patch) | |
tree | e9fc5116b42e7f8672c90a4baf2312562ad80ced /.config/init/funcs/ssh-scrot | |
parent | 965f07eb383810da6c2233d324d427eb147e40f4 (diff) | |
download | dotfiles-bc06b8ae7e83c2901dff2bc7a2947b3e870be168.tar.gz |
use tmpdir in vars
Diffstat (limited to '.config/init/funcs/ssh-scrot')
-rwxr-xr-x | .config/init/funcs/ssh-scrot | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/.config/init/funcs/ssh-scrot b/.config/init/funcs/ssh-scrot index 8fa243c..e5a3a36 100755 --- a/.config/init/funcs/ssh-scrot +++ b/.config/init/funcs/ssh-scrot @@ -1,5 +1,8 @@ #!/usr/bin/env zsh # take a screenshot, upload to /img/scrot, and update current symlink +# + +source $HOME/.config/init/vars archey3 @@ -30,10 +33,10 @@ done echo 'cheese!' sleep .1 -scrot /tmp/$name.png -convert -scale 250x /tmp/$name.png /tmp/${name}_small.png +scrot $tmpdir/$name.png +convert -scale 250x $tmpdir/$name.png $tmpdir/${name}_small.png -scp /tmp/$name.png /tmp/${name}_small.png airen-no-jikken.icu:http/img/scrot/$date +scp $tmpdir/$name.png $tmpdir/${name}_small.png airen-no-jikken.icu:http/img/scrot/$date echo "https://airen-no-jikken.icu/img/scrot/$date/$name.png" | tr -d '\n' | xclip -i -selection clipboard echo "https://airen-no-jikken.icu/img/scrot/$date/$name.png" | tr -d '\n' | xclip -i -selection primary @@ -42,4 +45,4 @@ echo "https://airen-no-jikken.icu/img/scrot/$date/${name}_small.png" | tr -d '\n echo 'sent!' -rm /tmp/$name.png /tmp/${name}_small.png +rm $tmpdir/$name.png $tmpdir/${name}_small.png |