Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Opens a zoom meeting in a browser from the command line
#!/bin/zsh
# Opens a zoom meeting with the name you've given it.
# Drop this script in /usr/local/bin/openzoom
# Invoke with `openzoom meeting_name`
typeset -A meeting
# NOTE: set this hashmap with meeting_name and ids of that meeting
meeting[meeting_name]=123456789
if [ -z ${1+x} ]; then
echo "pass one argument for the meetings you have available: ${(k)meeting}"
exit 1
fi
meeting_id=${meeting[$1]}
/usr/bin/open "https://zoom.us/j/$meeting_id"
@heckler

This comment has been minimized.

Copy link

@heckler heckler commented Dec 12, 2019

Tip: if you already have the desktop app installed, then there is a custom URL schema registered for the app, and you can use it to speed-up the launch process:

/usr/bin/open zoommtg://hp.zoom.us/join?action=join&confno=$meeting_id

@sebma

This comment has been minimized.

Copy link

@sebma sebma commented Jul 6, 2020

I use this command to transform https zoom url to a zoommtg url :

zoommtgURL="$(echo "$zoomHttpsURL" | sed 's/^https:/zoommtg:/;s|/j/|/join?action=join\&confno=|;s/?pwd=/\&pwd=/')"

@egorvinogradov

This comment has been minimized.

Copy link

@egorvinogradov egorvinogradov commented Jul 20, 2020

@heckler

Thanks!
As a shortcut, I wrapped this into a function and added into .profile:
zoom () { open "zoommtg://zoom.us/join?confno=$1" }

Usage:
zoom 11111111

@Sheg5

This comment has been minimized.

Copy link

@Sheg5 Sheg5 commented Jul 25, 2020

Typing xdg-open "zoommtg://zoom.us/join?action=join&confno=$meeting_id" works for me.

Source: https://waynewerner.com/blog/launch-zoom-from-the-command-line.html

@sebma

This comment has been minimized.

Copy link

@sebma sebma commented Jul 30, 2020

Typing xdg-open "zoommtg://zoom.us/join?action=join&confno=$meeting_id" works for me.

Source: https://waynewerner.com/blog/launch-zoom-from-the-command-line.html

I added this command for xdg-open to call Zoom for zoommtg:// links :
xdg-mime default Zoom.desktop x-scheme-handler/zoommtg
and this command to verify :
xdg-mime query default x-scheme-handler/zoommtg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.