hey folks! this works! (you can make it burn any text you want of course -- just change the source of the $TEXT variable)
#!/bin/bash
## A script to burn Mac computer name into desktop background
## requires Imagemagick and Ghostscript which you can install with homebrew
## ljaeger 2022-07-28
BKGD="/path/to/current/desktop/picture.png" ## if only there was a way to get this programmatically! There isn't, I looked.
ORIG="$BKGD"_original.png ;
## get the ComputerName
TEXT=$(/usr/sbin/scutil --get ComputerName) ;
# make a backup of original desktop pic if none exists
if [ ! -f "$ORIG" ] ; then
/bin/cp "$BKGD" "$ORIG" ;
fi
# make a clean copy of desktop pic from backup
/bin/cp "$ORIG" "$BKGD" ;
# burn ComputerName into desktop pic with Imagemagick convert command
convert "$ORIG" -fill white -stroke black -font Helvetica -gravity North -pointsize 100 -annotate +0+25 "$TEXT" "$BKGD" ;