Skip to content

banholzer/tfl-bg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Background Creator for teams-for-linux

This repo refers to Teams for Linux which provides an non-official Electron wrapped Microsoft Teams client for use on Linux.

With this script you can automatically create background images that shall be served by a local webserver (e.g. Apache2) and can then be used for video-conferences background effects.

Preconditions

Install a webserver of your choice and enable it to serve images.

Example on Ubuntu 22.04

sudo -i
apt install apache2
a2enmod headers
cat << EOF | sed -i "$(( $(grep -n 'DocumentRoot /var/www/html' /etc/apache2/sites-enabled/000-default.conf | cut -d: -f1) + 1 ))r /dev/stdin" /etc/apache2/sites-enabled/000-default.conf
        <Directory /var/www/html/>
          Header set Access-Control-Allow-Origin "*"
          Options Indexes FollowSymLinks
          AllowOverride None
          Require all granted
        </Directory>
EOF
systemctl restart apache2.service

Create Images

Make sure all the images are of JPEG format and named *.jpg.

Save all images to: /var/www/html/source/

run the script

./create_backgrounds.sh

Update your config

~/.config/teams-for-linux/config.json

{
        "optInTeamsV2": true,
        "url": "https://teams.microsoft.com/v2/",
        "isCustomBackgroundEnabled": true,
        "customBGServiceConfigFetchInterval": 120
}

Restart teams-for-linux

to pick up the newly available images

About

teams-for-linux background creation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages