dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles # fast
git clone https://src.adamsgaard.dk/dotfiles.git # slow
Log | Files | Refs | README | LICENSE Back to index

zoom.sh (422B)


      1 #!/bin/sh
      2 if [ $# -ne 1 ]; then
      3 	printf 'usage: %s url\n' "${0##*/}"
      4 	exit 1
      5 fi
      6 Xephyr -ac -screen 1600x900 -reset -terminate :1 &
      7 sleep 1
      8 sudo -u zoom sh -c "export DISPLAY=:1; dwm & printf '%s' '$1' | xclip"
      9 if command -v zoom >/dev/null 2>&1; then
     10 	sudo -u zoom sh -c "DISPLAY=:1 zoom '$1' >/dev/null 2>&1 &"
     11 else
     12 	sudo -u zoom sh -c "export DISPLAY=:1; export ENABLE_WASM=1; chrome --enable-wasm '$1' >/dev/null &"
     13 fi