Last active
September 6, 2021 21:25
-
-
Save cbdp/8ac9c52e103c01af58d075fbd8fd01b5 to your computer and use it in GitHub Desktop.
minimize Teams auto-start
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 1 sudo apt install wmctrl | |
| # 2 chmod +x /path/to/minify-teams | |
| # 3 add to desktop auto-start applications | |
| #!/bin/bash | |
| sleep 5 # waits 5 seconds, that's how long it takes teams to go fullscreen on my laptop | |
| i=0 | |
| while true; do | |
| i=$(echo $i + 1) | |
| wmctrl -c "teams" | |
| if [ $? -eq 0 ]; then | |
| break | |
| else if ($i == 40) | |
| then | |
| break | |
| else | |
| sleep 1 | |
| fi | |
| fi | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment