![]() ![]() ![]() Paste the following code: #!/bin/bash # IMPORTANT: Change the paths to match your own folder names # The filename of the image that's going to be replaced UUID="20F79B08-711E-11EA-BC55-0242AC130003" # The folder where Zoom keeps its background files ZOOMPATH="/Users/username/Library/Application Support//data/VirtualBkgnd_Custom/" # The folder where our background files are BGPATH="/Users/username/Pictures/Zoom/Backgrounds/" # Pick a random file BGFILE=`find "$BGPATH" -type f | sort -R | head -1` # Only replace the file when Zoom isn't running if ! pgrep -x then cp -R "$BGFILE" "$ZOOMPATH/$UUID" fi Anywhere in your home folder is fine, for example: ~/bin/cron/zoombg.sh. We want to periodically replace the above image with one from our backgrounds folder. There may be some files there already so find the file that corresponds to the image you just added and copy the name.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |