Screenshot macos
This commit is contained in:
parent
b19051d266
commit
d076f1c594
16
bin/SC
Executable file
16
bin/SC
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
FILENAME="/Users/tyrel/tmp/screenshot.png"
|
||||||
|
screencapture -i $FILENAME
|
||||||
|
osascript -e "display notification \"Saved $FILENAME\" with title \"Tyrel Upload\""
|
||||||
|
|
||||||
|
sleep 1
|
||||||
|
|
||||||
|
MD5=($(md5 -q "$FILENAME"))
|
||||||
|
osascript -e "display notification \"Saved $MD5\" with title \"Tyrel Upload\""
|
||||||
|
fname=$MD5.png
|
||||||
|
scp -rp "$FILENAME" vps:/www/tyrelsouza.com/screenshots/$fname;
|
||||||
|
osascript -e "display notification \"Uploaded $FILENAME to https://tyrelsouza.com/screenshots/$fname\" with title \"Tyrel Upload\""
|
||||||
|
echo https://tyrelsouza.com/screenshots/$fname | pbcopy
|
||||||
|
rm "$FILENAME"
|
Loading…
Reference in New Issue
Block a user