Last active
September 10, 2024 08:32
-
-
Save streetturtle/82f2cd547e627f76e09f640701369545 to your computer and use it in GitHub Desktop.
Script to start a Google Meet meeting in a default browser and copy the link to the meeting to the clipboard
This file contains 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
#!/bin/bash | |
# Script to start a new Google Meet meeting and copy the link to the clipboard. Supports Google Chrome and Firefox | |
# | |
# Prerequisite | |
# - xclip | |
# - browser extension to display url of the currently opened page in the window's title | |
# - Chrome: https://chrome.google.com/webstore/detail/url-in-title/ignpacbgnbnkaiooknalneoeladjnfgb | |
# In Extension's Options set following: | |
# - Tab title format: {title} - {protocol}://{hostname}{port}/{path} | |
# - Page URL filtering: Whitelist | |
# - URL filters: ^https://meet\.google\.com/ | |
# - Firefox: https://addons.mozilla.org/en-US/firefox/addon/add-url-to-window-title/ | |
# Open a new meeting | |
xdg-open https://meet.google.com/new | |
# Wait till it creates a new 'room' | |
sleep 2 | |
# Get the url to the meeting | |
xwininfo -tree -root | grep -oE 'https://[^ ]+' | xclip -selection clipboard | |
# Notify when done | |
notify-send 'Google Meet' 'Link to the meeting copied to the clipboard' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In case you have multiple users signed in to the Google account and you want to create a meeting not from the default account, change the link to the meeting, it should be like this
https://meet.google.com/new?authuser=1
.