Last active
          September 21, 2016 09:56 
        
      - 
      
- 
        Save koenhendriks/727e90e338e0d332dc2c0527e3710222 to your computer and use it in GitHub Desktop. 
    Screenshot and upload script
  
        
  
    
      This file contains hidden or 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/sh | |
| FILE="$(date +%F_%H-%M-%S)-scrot.png" | |
| gnome-screenshot -f $FILE -a && ~/Documents/screenshot.sh ~/$FILE | xclip -selection clipboard && mv ~/$FILE ~/shots/ | 
  
    
      This file contains hidden or 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/sh | |
| downpomf="" | |
| uppomf="https://up.serioushomebrew.nl/upload.php" | |
| if test $# -lt 1 ; then | |
| echo "Usage: `basename $0` FILE [FILE...]" | |
| exit 1 | |
| fi | |
| set= | |
| for f ; do | |
| test "$set" || set -- ; set=1 | |
| set -- "$@" -F "files[]=@$f" | |
| done | |
| curl -fsSL "$@" "$uppomf" | jq -c -r --arg base "$downpomf" '$base + .files[].url' | 
  
    
      This file contains hidden or 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/sh | |
| scrot '%Y-%m-%d_%H-%M_scrot.png' --select --exec '~/Documents/screenshot.sh $f | xclip -selection clipboard && mv $f ~/shots/' | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
put screenshot.sh in ~/Documents/ and launch shot.sh for
scrotor gnomeShot.sh for use withgnome-screenshot