1/2/2024 0 Comments Zoom change background![]() ![]() ![]() If you have any questions, feel free to reach out to me.I'd seen those framed pieces behind her for a year, and until that conversation, I had no idea she'd drawn them. If you are using Windows, you can modify the script accordingly and it should be fairly straightforward to use. That is all there is to it! Now you'll have a random Zoom virtual background every day (or however often you choose). Hit the I key on the keyboard to enter insert mode, paste in the line, and press Escape followed by “:wq” and enter to save and quit. To put it in a cron job, type: crontab -eĪnd it will open up an editor using vi. You'll need to update the path if you chose a different location for the bash script. The second part is just telling the OS what to do at that point in time. The first part (55 9 * * 1–5) is what you will need to customize according to your schedule. I use: 55 9 * * 1-5 /Users/saranshkataria/zoom/zoombg.sh > /dev/null 2>&1 If you are new to cron jobs, you can use the generator to help you. I do mine at 9:55 AM every day since my meetings start at 10 AM. We need to decide a schedule for how frequently we want to change the Zoom virtual background. All we need to do is put it in a cron job which is a built-in time-based job scheduler. We need to make this script executable by running the command: chmod 755 ~/zoom/zoombg.sh How to Change Your Zoom Background Randomly If you choose different paths for the directory, just make sure to change that in the variable. ![]() NEW_BG=$(find "$BGPATH" -type f | sort -R | head -1) ZOOM_DIR="/Users/$USER/Library/Application Support//data/VirtualBkgnd_Custom/" # Directory where Zoom keeps the backgrounds # The name of file that we copied before and will be replaced with Again, it can be named whatever you like – I am naming mine ~/zoom/zoombg.sh. I will be putting this scrip in the Zoom folder that I created for the background images. We will be using a bash script to replace the image we just used. ![]() The file name will be something like: 9WAE197F-90G2-4EL2-9M1F-AP784B4C2FAD How to Write the Script The directory is located at: ~/Library/Application Support//data/VirtualBkgnd_Custom. There might be some files already in the directory, but we want to select the one that corresponds to the image that we just uploaded to avoid replacing a different file. All we need is the unique ID that Zoom will assign to this background. It does not matter which background you choose. Next, we set a Zoom virtual background in our application. But it is a variable that you can change to whatever you want it to be. Mine is at /zoom/bgpictures/, and that is what I use in the script. I have put all the images I want to use as backgrounds in a folder in my user directory. You can then put this in a cron job to be executed every day (or any frequency you prefer) to periodically change the background. And voila! A different Zoom virtual background is shown. The script just takes in a random file and replaces it with this background file. Instead, I found out that the Zoom application creates a copy of the background that gets selected in its preferences folder and references it. Software developers are born lazy, right? :) Zoom does have an API that I could have used to change my background every day – but that seemed like too much effort for this task. So being a Software developer, I had to automate the process of choosing a random Zoom virtual background every day. Sadly, Zoom does not have this as a built-in feature. And then I decided to use them all, on different days. If you are anything like me and take a lot of pictures, it can be hard to decide which one looks good. I started using them as Zoom virtual backgrounds. Over the past few months, I've found a new use for the pictures that I've taken while hiking. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |