Add screenshot tool
This commit is contained in:
parent
c7cbf35e15
commit
0dc9ab97ab
6 changed files with 32 additions and 5 deletions
.local/bin
19
.local/bin/screenshot
Executable file
19
.local/bin/screenshot
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
s3_bucket=public.serguzim.me/screenshots
|
||||
s3_host=https://sos-de-fra-1.exo.io
|
||||
path=/tmp/screenshot.png
|
||||
|
||||
if flameshot gui -r > $path
|
||||
then
|
||||
file=$(date "+%F_%H-%M-%S").png
|
||||
|
||||
xclip -t image/png $path -selection clipboard
|
||||
|
||||
s3cmd put -P $path s3://$s3_bucket/$file
|
||||
echo "$s3_host/$s3_bucket/$file" | xclip -selection primary
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue