Add script folder
This commit is contained in:
parent
d6feed339b
commit
8203a7ef46
21
scripts/flameshot_upload.sh
Executable file
21
scripts/flameshot_upload.sh
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
file_name=$(echo ~/Pictures/Screenshots/)
|
||||||
|
base_name=$(date +%F_%H-%M-%S)
|
||||||
|
base_name+=".png"
|
||||||
|
|
||||||
|
file_name+=$base_name
|
||||||
|
|
||||||
|
flameshot gui -r > $file_name
|
||||||
|
|
||||||
|
sftp -oPort=4242 gaudonpr@ftp.gaudon.pro << EOT
|
||||||
|
cd public_html/push.arisu.fr/
|
||||||
|
put $file_name
|
||||||
|
EOT
|
||||||
|
|
||||||
|
url="https://push.arisu.fr/"
|
||||||
|
url+=$base_name
|
||||||
|
|
||||||
|
echo $url | xclip -selection clipboard
|
||||||
|
|
||||||
|
notify-send "File upload complete" "$url" --icon=flameshot.svg
|
20
scripts/flameshot_upload_latest.sh
Executable file
20
scripts/flameshot_upload_latest.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
latest_screenshot=$(ls -t ~/Pictures/Screenshots/ | head -1)
|
||||||
|
|
||||||
|
file_name=$(echo ~/Pictures/Screenshots/)
|
||||||
|
base_name=$latest_screenshot
|
||||||
|
|
||||||
|
file_name+=$base_name
|
||||||
|
|
||||||
|
sftp -oPort=4242 gaudonpr@ftp.gaudon.pro << EOT
|
||||||
|
cd public_html/push.arisu.fr/
|
||||||
|
put $file_name
|
||||||
|
EOT
|
||||||
|
|
||||||
|
url="https://push.arisu.fr/"
|
||||||
|
url+=$base_name
|
||||||
|
|
||||||
|
echo $url | xclip -selection clipboard
|
||||||
|
|
||||||
|
notify-send "File upload complete" "$url" --icon=flameshot.svg
|
Loading…
Reference in New Issue
Block a user