Skip to content

Instantly share code, notes, and snippets.

@tsprlng
Last active December 30, 2020 23:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsprlng/fc71ca68c77cff7a03ff20e16571fbd2 to your computer and use it in GitHub Desktop.
Save tsprlng/fc71ca68c77cff7a03ff20e16571fbd2 to your computer and use it in GitHub Desktop.
zoom.us without ruining my arch install
#!/usr/bin/zsh
meeting_id="$1"
image_name='tsprlng/zoom' # Originally mdouchement/zoom-us:latest but ran `docker commit` once correct config was set
# TODO build a smaller image (sadly jessfraz's won't speak to my pulse server -- older lib version?)
# TODO build a tar for runc instead of using docker
args=()
[[ -n "$meeting_id" ]] && args+=( "zoommtg://zoom.us/join?action=join&confno=$meeting_id" )
# TODO bindmount ~/tmp to wherever it tries to save video/files to
xhost +si:localuser:tds # this possibly relies on my UID happening to match...
sudo docker run --rm -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -e PULSE_SERVER=/run/pulse/native -v /run/user/1000/pulse:/run/pulse:ro --device /dev/video0 --device /dev/dri "$image_name" zoom "${args[@]}"
@tsprlng
Copy link
Author

tsprlng commented Dec 30, 2020

now using firejail with pinned AUR package instead, but may as well leave this here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment