Browse Source

add 'aos'

master
Aczkolwiek Straszyć 8 months ago
parent
commit
304cee7512
  1. 18
      aos

18
aos

@ -0,0 +1,18 @@
#!/usr/bin/env sh
# aos - Acz's own screenshoter
# written by Aczkolwiek Straszyć
# license: CC0-1.0
# depends: imagemagick, curl, xclip, a posix compliant shell
tmpname="/tmp/$(tr -dc 'A-Za-z0-9' < '/dev/urandom' | head -c 10).png"
import "$tmpname"
url="$(curl -sF"file=@$tmpname" 'https://i.kalli.st')"
printf '%s' "$url" | xclip
rm -f "$tmpname"
# optional dependency for this line: ratpoison
ratpoison -c "echo $url"
Loading…
Cancel
Save