Created
August 4, 2018 19:30
-
-
Save outout14/2d9e10537d6473502d8cc42dcc856021 to your computer and use it in GitHub Desktop.
Simple screenshot script using scrot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
time=$(date +%Y-%m-%d-%H%M%S.png) | |
printf "\e[33mPrise de la capture d'écran et envoie \n" | |
scrot $time -s -e 'scp "$f" [email protected]:/directory' | |
printf "\e[4m\e[32mEnvoie terminé !\e[0m\n" | |
printf "\n\e[1mNom du fichier : \e[0m\e[34m" && echo $time | |
printf "\e[1mAdresse du fichier : \e[0m\e[34mhttps://httpurltopicture/" && echo $time | |
echo "https://httpurltopicture/"$time | xclip -sel clip | |
sleep 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment