Created
July 26, 2020 21:24
-
-
Save nasyxx/a213b63849b2ad8ca42cc207ba2e1cc2 to your computer and use it in GitHub Desktop.
Revisions
-
nasyxx created this gist
Jul 26, 2020 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ #!/bin/bash /usr/sbin/screencapture -i /tmp/ss.png SSF=$(date +"Screen Shot %Y-%m-%d at %r.png") W="$(/Users/Nasy/.macports/bin/identify -format "%w" /tmp/ss.png)" H="$(/Users/Nasy/.macports/bin/identify -format "%h" /tmp/ss.png)" C="#A7FF83" /Users/Nasy/.macports/bin/convert \ /tmp/ss.png \ \( -background none -fill $C -font "AppleChancery" -pointsize $((W/30)) -gravity center label:"Nasy" -trim +repage \) \ \( -clone 1 -background black -shadow 80x25+0+0 \) \ \( -clone 1 -clone 2 +swap -background none -layers merge +repage \) \ -delete 1,2 \ -gravity southeast -compose over -composite \ \( -clone 0 -background $C -shadow 80x50+0+0 \) \ -reverse -background none -layers merge +repage \ "/Users/Nasy/Documents/Screenshots/$SSF"