bin sh -e message Made on date by USER output screenframe_ date png bo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#! /bin/sh -e
message="" #"Made on $(date +%F\ [%T]) by $USER"
output="screenframe_$(date +%s).png"
boundbox_color="#f000004b"
xwd -frame | convert xwd:- \
-gravity southwest \
-pointsize 14 \
-fill white -undercolor "$boundbox_color" \
-stroke "#000C" -strokewidth 2 \
-annotate +0+5 "$message" \
-stroke none -fill white \
-annotate +0+5 "$message" "$output"
exit 0