Skip to content

Instantly share code, notes, and snippets.

@kroovysteph
Created December 27, 2016 19:45
Show Gist options
  • Save kroovysteph/642896f68ce0000f43015ca906651a16 to your computer and use it in GitHub Desktop.
Save kroovysteph/642896f68ce0000f43015ca906651a16 to your computer and use it in GitHub Desktop.
DATE=$(date +%F_%H%M%S_)
scrot -s ~/screenshots/$(echo $DATE)screenshot.png;
sleep 1;
scp ~/screenshots/$(echo $DATE)screenshot.png kroovy.de:/var/www/screenshots/;
echo -n "https://screenshots.kroovy.de/$(echo $DATE)screenshot.png" | xsel --clipboard;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment