Skip to content

Instantly share code, notes, and snippets.

@outout14
Created August 4, 2018 19:30
Show Gist options
  • Save outout14/2d9e10537d6473502d8cc42dcc856021 to your computer and use it in GitHub Desktop.
Save outout14/2d9e10537d6473502d8cc42dcc856021 to your computer and use it in GitHub Desktop.
Simple screenshot script using scrot
#/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