Advertisement
Guest User

Untitled

a guest
Feb 1st, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #!/bin/bash
  2. url=""
  3. function uploadImage {
  4. url="$(curl -s -F "file=@$1" http://pokit.org/up2.php?user=not&pass=important)"
  5. }
  6.  
  7. scrot -s "shot.png"
  8. uploadImage "shot.png"
  9. echo $url | awk -F ".png" '{print "http://pokit.org/get/img/" $1".png" }' | xclip -selection c
  10. rm "shot.png"
  11. notify-send "Done"
  12. sleep 0.2
  13. killall notify-osd`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement